Questions tagged [styles]

1

votes
4

answer
1.6k

Views

Android Alert Dialog - How to change the title color and the text color without changing the primary color

Hay, Is there a simple way to change the title and the text colour without changing the primary colour of the whole app? Here is what I got now: I dont want to change the textColorPrimary
Raheel Hasan
1

votes
1

answer
1.3k

Views

Optimal Length of a Python Function (Style) [closed]

Perhaps this is not the correct place to ask this question, and part of me thinks that there is no real answer to it, but I'm interested to see what experienced Python users have to say on the subject: For maximum readability, concision, and utility, what is a range for an optimal length of a Pyth...
austin_sherron
0

votes
0

answer
2

Views

show wfs attributes as label on selection

i am trying to show attribute of wfs gml layer from geoserver as label in my openlayer3 application. I am successful to get label as text but unable to access the particular attribute'name'. Given is the code i am working with. var sourceWFS = new ol.source.Vector({ loader: function (extent) { $.aja...
Ashutosh Mishra
1

votes
2

answer
129

Views

SASS - How can I assign two classes the same style except one property?

I have a SASS stylesheet and I want to assign the same styles for two classes (.class and .otherclass) except for one property (before:) which should have another value for .otherclass. This is the code I currently have: .class, .otherclass { p { font-family:arial; &before: @extend .class-one {} }...
Mar
1

votes
0

answer
272

Views

Change Text Color of Number Picker via State Selector

I am trying to change the text color of NumberPicker ! i want different colors at different states , if state is enable and different color for state is disabled. here is my number picker code : here is my text_color.xml under Res->Color Direcoty now here is my style.xml @color/colorPrimary @color...
Nisarg Jani
1

votes
1

answer
233

Views

Keep chart/graph style

Is it possible to keep the chart style (shape styles) from a xlsx file when I read and write it? With my code below the style is lost . require 'vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx AS WXlsx; use PhpOffice\PhpSpreadsheet\Chart\Chart...
bhanequin
1

votes
4

answer
158

Views

CSS / On hover, can I change the same element's ::after?

I have tag with class='dropdown-button' and want to style its ::after on first LI element hover. I am trying this: home about us style { .dropdown-button { margin-top:10px; border:1px solid #ccc; } .dropdown-button::after { border-bottom: 6px solid #FFFFFF; border-left: 6px solid rgba(0, 0, 0,...
KoboldMines
1

votes
0

answer
36

Views

Checking whether WinForms app is rendered with OS visual styles

We have a legacy WinForms app written at the times of .NET 1.x and may need to change the code that checks whether the app is rendered with the OS visual styles for the reason described below. The current function that does this work looks like this: private bool IsComCtl6 { get { if (!fIsComCtl6Ini...
TecMan
1

votes
1

answer
167

Views

datatables.min.css doesn't work from local project

I have a ASP.NET MVC project which uses JQuery Datatables to show a table. The problem: the css stylesheet isn't applied when links to local css file. I've tried the following: But this one (at the same place of my HTML) is working: Even current sorting column highlight from this css doesn't work! O...
Laser42
1

votes
0

answer
116

Views

Change the style of MenuItem on android toolbar

I'm using android toolbar for my application actionbar. It has an action button which has 2 MenuItems like this: Now I'm trying to change the style of the MenuItems to represent something like the following: But I can only change the textColor and font by using this style as my toolbar's theme andro...
mammadalius
1

votes
2

answer
74

Views

Theme in android manifest

How can I combine android:theme='@android:style/Theme.Material.Light' and android:theme='@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen' on android-manifest.xml or in values/style.xml?
user9309437
1

votes
1

answer
61

Views

How to get an overview of all android attributes at runtime?

Let's start with the practical example. When styling a button Android Studio IDE may give the warning, that a button should be borderless and I should apply ?android:attr/buttonBarButtonStyle to reach this. The attributes are a kind of variables. I want to know, what this attribute is resolving to...
Blcknx
1

votes
0

answer
196

Views

How can I set leaftlet CircleMarker radius in feet?

I'm trying to built a layer made out of CircleMarkers on LeafLet, but I'm having an hard time trying to give the Radius property a proper meaning since it's supposedly expressed in pixels. I need to construct circle markers that have a radius of 500feet, so how can I represents that since the Circle...
1

votes
1

answer
47

Views

CSS | Bootstrap - Sidebar's blocks with dynamic height based content

I'm trying to set the height of my sidebar's block that must be stretched/filled with the sidebar main block. Also my sidebar block must be the same height of the content block. Here an image of example that I've made: I'm using bootstrap 4 and I've tried with grid/flexbox and position relative/abs...
1

votes
1

answer
120

Views

style=“display: none” attribute not working in JTextPane

I am working on creating an html editor in java using JTextPane. The attribute style = 'display: none' doesn't seem to be working here as expected. Help me out here. My code is: JTextPane basePane = new JTextPane(); basePane.setEditorKit(JEditorPane.createEditorKitForContentType('text/html')); base...
Ashwin K Kumar
1

votes
0

answer
59

Views

App SDK migration from 27.0.2 to 27.1.0: itemBackground properties changes on API < 20

I've just upgraded my Gradle from Android SDK 27.0.2 to 27.1.0. Unfortunately there is a regression on item popup renderer. For API < 20 the background is dark now versus API >= 20. API = 20 I've tried to add style (styles-v19 folder), but all styles are impacted: #F5F5F5 So how can I specify this p...
anthony
1

votes
0

answer
567

Views

Can't use android:style/Widget.Holo.Light.CompoundButton.Switch

I have this error : Error:(15) error: resource android:style/Widget.Holo.Light.CompoundButton.Switch is private. And I really want to use this style. How can I do ? Thanks
Diridou
1

votes
1

answer
44

Views

React native: characters above text line (for chords above the lyrics)

Is it possible to 'put' (style) a character above other character/string in Text component without use WebView? (for chords above the lyrics)
Bokris Itzhak
1

votes
0

answer
11

Views

Style to picture item in repeater

Is it possible to change size and width for this image when I display it? As it stored as picture and I can't change it to hyperlink and use the img tag.
N.M
1

votes
0

answer
532

Views

React not reflecting style changes

I'm trying to set up a very basic css configuration for my react project. I'm using webpack and style loaders, like so: // webpack.config.js const {resolve} = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); c...
Doug
1

votes
0

answer
28

Views

Why is this element showing up differently in internet explorer than in Chrome?

My cart progress bar looks perfect in chrome with the triangle at the end of it. On internet explorer it breaks. What's going wrong? https://www.headsets.com/cart/addcart.html?split_shipping=cart_progress_bar_on
Jack Faith
1

votes
1

answer
526

Views

Superscript style is broken in my react-native?

I have the following react-native code. Hello world I am going to eat some Pizza for the sake of eating pizza. Super Pizza Store. You will pay $10 8 . I doubt you can afford it. const styleOptions = { container:{flexDirection:'row',flexWrap:'wrap',width:300,padding:10}, regular:{fontSize:13}, sup...
John
1

votes
1

answer
558

Views

How to change Google Organization Chart link line color & thickness?

I am fiddling around with google's organization chart in javascript but I can't figure out how to change the link lines' color and thickness. The documentation only talks about styling the nodes but there is nothing about the links connecting them. How do I style the links?
Einherj
1

votes
3

answer
63

Views

importing CSS into a HTML does not work. [duplicate]

This question is an exact duplicate of: importing CSS into a HTML does not work 3 answers I am trying to import CSS file into an HTML but it does not work. I did try linking also. Can anyone have an idea why? Thanks. Lesson @import url('U5.css');
Mahmut Alban
1

votes
1

answer
232

Views

Pandas apply style on groupby hierarchy

Pandas style keyword only works on rows or columns. Is it possible to split it according to sublevels. For example np.random.seed(24) df = pd.DataFrame({'Types': np.linspace(1, 10, 10)}) df = pd.concat([df, pd.DataFrame(np.random.randn(10, 4), columns=['Names','V1','V2','V3'])], axis=1) df['Types'][...
Animesh Saxena
1

votes
1

answer
552

Views

WPF One DataTrigger with multiple Values

I have a Slider and a TextBlock on my WPF window. The TextBlock needs to change the background, foreground and font size by the value of the slider, by rang. I built a converter that receives the value of the slider and returns a 0, 1 or 3 for each group. public class ValueByRange : IValueConverter...
Roy Raz
1

votes
1

answer
29

Views

Changing a ListBoxItems mouse over style in Xaml/Wpf

I am trying to change a ListBox so that when I mouse over it, it no longer shows the default IsMouseOver style. From my searching online the suggested code looks something like this; ... This code produces the correct results for initial coloring, that is to say the items are displayed with a red Ba...
Tristan Trainer
1

votes
1

answer
57

Views

WPF ItemsControl Template doesn't show ItemsControl.Items

I want to create a Template or a Style from this xaml code without to define the ItemsControl.Items, the controls should to be exchangeable: I've tried it with a Style: but when I set the Style I don't see my ItemsControl.Items in the orginal ItemsControl where my controls are in,... it's just blank...
Baumkuchen
1

votes
0

answer
101

Views

Matplotlib marker filled with 2 colors at specific ratios

I have a scatterplot on which I would like to add a dimension by the filling the markers by a certain amount, representing a percentage, as sketched: I found how to fill markers with 2 colors but only 50%/50% But not how to specify the ratio of each color. Another option is to make scatterplots of p...
Charlotte
1

votes
1

answer
132

Views

Style Base.Theme.AppCompat multiple implementation Android studio 3.1.1

After downvoting please consider wasting 10 seconds of your life to explain a reason for it in the comment, since I can't really figure out why. Thanks! Since the last update I'm getting some error in my styles.xml The error, more specifically, is Cannot resolve symbol Base Cannot resolve symbol Ba...
1

votes
1

answer
63

Views

Set different style for each text view inside a custom relative layout view

I have created a custom view with multiple child text view and image view. Each child view has its own style. But I am struggling to set the custom style to these child views programmatically. Here I have created the three styles InfoBoxTitle, InfoBoxDescription, InfoBoxExtraDetail. public class In...
Aman Jain
1

votes
1

answer
194

Views

add openweathermap png tile layers on mapbox style

I'm trying to implement openweathermap map weather layers from https://openweathermap.org/api/weathermaps on a mapbox map style but i don't know where to put the image tile source on the json file. can i have some help? thank you. I'm using Mapbox for Qt and here is my code, i'm using Mapbox maps f...
Dayaa Eddine
1

votes
0

answer
299

Views

How can I use a custom theme with react-dates?

I'm trying to style my react-dates DayPickerRangeController in Typescript, using react-with-styles and Aphrodite. I'm using this code, emulating the code from https://github.com/airbnb/react-dates#interfaces: const ThemedStyleSheet = require('react-with-styles/lib/ThemedStyleSheet').default const ap...
MaxGabriel
1

votes
0

answer
34

Views

Android: Inheriting a style and setting value of a custom attribute in it is not working

I have a custom attribute in attr.xml: I've created a drawable button_background.xml which use that custom attribute: and I've defined a style like below: @drawable/button_background 3dp bold 15dp 15dp center I'm defining value of that custom attribute in these child styles: @color/Green @color/Blue...
crysis
1

votes
1

answer
298

Views

OpenLayers 3 Style Function for dynamic feature font setting

I am using php and mySQL to generate javascript for the vector layers and features. All is functionally working except I need to be able to control the feature text with zoom, which from my searches requires the use of a style function. My issue is how/where do I create a function to set what is cur...
user34252
1

votes
0

answer
60

Views

TextInput fullscreen onFocus react native

Hi is there a way to make an multiline TextInput go fullscreen onFocus and return to its normal size after the user finished editting (for ex: when the user hits the android Back button). I plan to allow user to type a long paragraph in my App, and I think it would improve the UX if I can make the m...
MoonFan
1

votes
1

answer
152

Views

Error when including .hpp files for VCL Style Utils generated in Embarcadero C++ Builder

I want to use the library 'VCL Style Utils' in Embarcadero C++Builder 10.2 Tokyo. So I created a new project and added: Vcl.Styles.Utils.Graphics.pas Vcl.Styles.Utils.Menus.pas Vcl.Styles.Utils.SysControls.pas Vcl.Styles.Utils.SysStyleHook.pas The build is successful and generates .hpp files for the...
Arnaud
1

votes
1

answer
504

Views

DataGridView change cells background and restore default style

In my DGV, after clicking on a cell, I want to change the background color of all the cells of the same column with some value. After clicking on another cell, the previous cell (and all its column) must restore default style int currCell = dgvLogHeader.CurrentCell.ColumnIndex; string pattern = d...
dMazay
1

votes
1

answer
28

Views

Wordpress custom .css styling dissapeared after pressing Customize in the Admin panel

I had a fully functioning custom theme built but then I made the mistake of pressing Appearance->Customize in the Admin panel. Now all my styles regarding menus are back to default and there is no way to override them. All other styles are working, the custom theme style.css is being used, but all t...
Edgars Vilums
1

votes
0

answer
36

Views

How to change Appwidget Text's Gravity and Style

I was trying to set appwidget text gravity and style(italic,bold..) on code. I tried remoteViews = new RemoteViews(context.getPackageName(), R.layout.new_app_widget); remoteViews.setInt(R.id.widgetText,'setGravity', Gravity.LEFT); In AppWidget code But this method did not work. it appears to widget...
안진규

View additional questions