Menu
  • HOME
  • TAGS

How to set a borderless button which changes its color when mouse hovering in WPF

c#,wpf,xaml,button,styles

Why BorderThickness value not reflected to control? http://stackoverflow.com/a/16649319/440030 Why your xaml won't work? Because, you set Template property of button with a simple content presenter, So Button ignore all control property and reflect your template. One way is improve your Template property with a by example label: <ControlTemplate TargetType="{x:Type Button}">...

(AngularJS) Only one less file for entire Website

css,angularjs,styles,less

I solve my problem by adding specific class on body tag depending the route. I put a variable in rootScope called 'pageStyle' with correspond to the classname that I want. This variable is updated automatically when route change (see run function). There is an event when the route change ($stateChangeSuccess...

WPF Button Background when IsEnabled = False

wpf,button,styles

You should not be defining the ContentTemplate property. If you want to change what the button looks like, you should define the Template property and add your Triggers into the ControlTemplate you define there instead. Perhaps it would help if you read the Customizing the Appearance of an Existing Control...

WPF custom button

wpf,button,styles

I'm going to attempt to answer your questions directly, however there is much that can be discussed here. What this template doing? All controls have some kind of default template, a pre-defined look and feel of what the control looks like. The Template is overriding the default look and feel...

jTextPane color with some exception in chat

java,swing,styles,chat,jtextpane

This is so obvious - not sure if qualifies for an answer. Anyway Why are you doing GUI.appendReceivedMessages(""+doc); ? that is causing the doc object's default toString to appear. Hope that helps EDIT: so what can I do here I guess you can do it like this : Note that...

Global style isn't being applied

c#,wpf,xaml,styles

If you want, for example, all your windows in your app to have the same style, remove the x:Key property of your style with TargetType Window. Having the x:Key property will force you to explicitly use the style in your windows for it to apply. If you remove the x:key,...

WPF style info from external text file

wpf,vb.net,styles

just hold the color values in a config file simple text file will suffice. though you can use VisualStudio Resource file.. file will contain lines in each: item_enum_name item_type item_value for example: main_screen_bg_color Color Black company_logo URI \logos\logo1.jpg and so on.. just load the file parse it and use bind...

WPF add new Slider style cause XamlParseException

wpf,slider,styles

These Styles reference other Styles and Templates via StaticResource: MyFocusVisualStyte (Typo? Shouldn't it be MyFocusVisualStyle?), SliderThumbStyle, SliderRepeatButtonStyle, HorizontalSlider, VerticalSlider... All these Styles and Templates must exist and be defined BEFORE they're used. In this case, the resources must be defined in this order (I'll copy only the first node of...

Attr value is declared in two different libraries

android,design,attributes,styles

The easiest fix for this is to just rename the attribute in one of the libraries. To do that you have to: Download the source code of one of the libraries and add it to your project. Now you have to rename the attribute in the source code you just...

dreamweaver cs6 show where style is used

css,styles,dreamweaver

Use Search and Replace to accomplish that. ...

PHP String for HTML style

php,html,css,string,styles

If you copy pasted background-image:url(layout/nova.png) from a css file, then you should fix the path accordingly to the position of the script. In example: background-image:url("../css/layout/nova.png"); I hope it helps....

Coding Style for User defined Exception in java

java,exception,design-patterns,styles

It encapsulates the new keyword in a method, which might be seen as making the user-defined exception into a kind of simple factory. This might have advantages for maintenance and/or testing later, since you just change the implementation of the enforce method and client code calling it will change....

Style div display table-row can be styled or not

html,css,html5,css3,styles

Answer is yes to both of your questions, in fact there is lot more you can do with display:table using CSS styling CSS has properties to make any element you wish behave as if it was a table element. You'll need to structure them essentially as you would a table,...

Why font-size is not applied to raw cell content

html,css,styles

It looks to me like you forgot to put the class "small" on the second <td> element. It should look like this: <td class="small"> <a href="...">Small content</a> </td> <td class="small">Should be smaller as well</td> ...

Constructing book cover using div and CSS

html,css,styles

Yes. <div style="width:400px; height:800px"> <div style="display: table; width:400px; height: 100px; overflow: hidden;"> <div style="display: table-cell; vertical-align: middle; background-color:blue;"> <h4 style="color:white;text-align:center"> <i style="color:yellow">image</i>Training book header text </h4> </div> </div> <div style="display: table; width:400px; height: 250px; overflow: hidden;"> <div style="display: table-cell; vertical-align: middle;"> <h1...

No Parenthesis in Rails - Good Style? [closed]

ruby-on-rails,ruby,styles

The downvotes are probably because SO is technically not a good forum for this kind of question - apparently SO community likes clear, answerable, discrete, objective questions, not more general style or technique questions like this. But I love questions like these, so here goes. Since working with Ruby various...

item radius shape android

android,xml,styles

Try this: Create a xml file in res/drawable called rounded_corner.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:bottomRightRadius="0dp" android:bottomLeftRadius="0dp" android:topLeftRadius="5dp" android:topRightRadius="0dp"/> </shape> Then, apply the drawable to your view's background like: <TextView android:id="@+id/example" android:width="wrap_content" android:height="wrap_content"...

IPAD Mini - IOS 7.0 - Double Select Box Overlap

css,layout,styles,ipad-mini

It's because you have the <label> surrounding both elements. If you move the label to not wrap both elements, it will work: <label> <span>Expiration</span><br> <select class="card-expiry-month input-mini"> <option value="01" >01</option> </select> </label> <label> <select class="card-expiry-year input-mini"> <option value="2014">2014</option> </select> </label> ...

ExtJS: displayfield with same style as textfield

css,extjs,styles

Ext.create('Ext.form.Panel', { bodyPadding: 10, defaultType: 'textfield', fieldDefaults: { labelAlign: 'right', labelWidth: 150 }, renderTo: Ext.getBody(), standardSubmit: true, title: 'Form', width: 400, items: [ { fieldBodyCls: 'x-form-trigger-wrap-default x-form-text x-form-text-default', fieldLabel: 'Displayfield with link', name: 'field01', value: 'Some text <a href=http://www.yoururl.com>www.yoururl.com</a>', xtype: 'displayfield' },{ fieldLabel: 'Textfield', name: 'field02', value: 'default', xtype: 'textfield'...

HTML/CSS: Link Styling being used for image hyperlinks, and I can't get it to stop?

html,css,hyperlink,styles

The "natural" behavior of an anchor tag is just a link that contains text, right? So when you are adding this anchor tag for the img, the rectangle you're seeing is the browser "preparing" for the text, so it is taking a height of the default font size. The trick...

How to add css class to style.css?

jquery,css,styles

The short answer is - you don't do it that way. Define the styles in the css file, then use the classes in the html - whether added inline or manipulated by jQuery - to attach the css rules to your html elements. Your css file doesn't change while in...

li and a element styling issue with Chrome after clicking a link

html,css,google-chrome,styles,html-lists

Just change the padding from 10% to 10px or more for the a tag

Applying some styles to control

java,android,xml,styles

Yes you can implement styles in your values/styles.xml you can do something like : <style name="MyMainStyle"> <item name="android:layout_width">250dp</item> <item name="android:layout_height">60dp</item> </style> <style name="MySecondaryStyle" parent="MyMainStyle"> <item name="android:paddingLeft">20dp</item> </style> As you can see you can also have parent styles. Then you can use the style in your layout.xml like so : <Button...

curved style for image

html,css3,web,styles

You can get this efect setting multiple divs with the same background image, and arranging them in a curved path along the Z axis. As an extra, you can get an hover animation .test { width: 800px; height: 600px; position: relative; transform-style: preserve-3d; perspective: 1200px; transition: perspective 2s, transform 2s;...

incorrect status bar translucent displays on sony on lollipop

android,styles,statusbar,material-design,material

Simply remove: <item name="android:windowTranslucentStatus">true</item> from the "BATheme", or change it in: <item name="android:windowTranslucentStatus">false</item> if there a styles.xml with that parameter set as true....

How to position checkbox and text

jquery,html,css,checkbox,styles

The text is placed inside news DIVs. Divs take up the entire space especially on a new line. Get rid of the Div. Instead put them in a span and also inside the parent. Like this <div class="kat1"> <label> <input id="catswitch1" type="checkbox" onclick="shCat(1);" checked="checked"/> <label for="thing" style="cursor: pointer"></label> </label> <span>ITEM...

WPF style button

c#,wpf,xaml,styles

you need to modify the ControlTemplate. To remove the default behaviour on the Button. <Style x:Key="NavigationButton" TargetType="{x:Type Button}"> <Setter Property="Background" Value="#295fa6"/> <Setter Property="BorderBrush" Value="{x:Null}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Border Background="#295fa6"> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> </Border> </ControlTemplate>...

How to change ActionBar menu background color (android 4 & 5)

android,menu,android-actionbar,styles,background-color

add actionOverflowMenuStyle item to your app theme <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="actionOverflowMenuStyle">@style/CMOptionsMenu</item> </style> <style name="CMOptionsMenu" parent="Widget.AppCompat.PopupMenu.Overflow"> <item name="android:popupBackground">your color code</item> </style> ...

How to set width and height in jQuery

javascript,jquery,styles,height,width

To set the width and height for all images, you can use the .width() and .height(). In your case, you'll want the following code for <img> tags: $(img).width(450).height(350) Now, if you're trying to resize background images, you'll need to set CSS styles (duplicate post): $(selector).css({ "-o-background-size": 450px 350px, "-webkit-background-size": 450px...

Any idea with font-size of 1.05em/1.2em?

css,styles,font-size

That is font-size/line-height. e.g. 1.4em/1em is 1.4em font-size and 1em line-height full css syntax for font is: font: font-style font-variant font-weight font-size/line-height font-family|caption|icon|menu|message-box|small-caption|status-bar|initial|inherit; ...

Change icon on ActionBar tab click or swipe - Android

android,android-layout,android-actionbar,styles,android-tabs

You can change the icon of a tab by doing the following: @Override public void onTabSelected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction fragmentTransaction) { // When the given tab is selected, switch to the corresponding page in the ViewPager. pager.setCurrentItem(tab.getPosition()); //to set tab's icon tab.setIcon(id_of_the_icon_to_change_to); //or if you don't have a new icon to...

Edit Style Attribute of every div in a list

javascript,html,css,styles

If you wanna be more specific with your selection: DEMO var divs = document.querySelectorAll(".message-pane div"); var dd = Array.prototype.slice.call(divs); dd.forEach(function (div) { div.style.color = "#000" }); ...

how to remove blank space from web page? [duplicate]

html,css,css3,styles

Nullify the margin of document, add this style to your web page <style> html, body{ margin: 0; } </style> ...

No resource found that matches the given name '@android:style/Widget.AppCompat.Light.ActionBar.Solid.Inverse'

android,xml,styles,android-manifest

Try @style/Widget.AppCompat.Light.ActionBar.Solid.Inverse instead . On a side note, the styles.xml file on appcompat_v7 suggests that @style/Widget.AppCompat.Light.ActionBar.Solid.Inverseis deprecated. @android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse is an alternative....

Style “Cannot find resource 'MetroCheckBox'” in MahApps

c#,wpf,xaml,styles,mahapps.metro

I ran it today and it works fine: <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource MetroComboBox}"> <Setter Property="Margin" Value="2"/> </Style> As far as I can tell I've changed nothing to do with the project or references. However, in the last few days Visual Studio had corrupted somehow with the designer throwing exceptions left...

How to change the background color of a TextView inside of an ActionMode

android,android-actionbar,styles,android-actionmode

I think you can try to use the hack way to change the backgroud: Via Java: Use hierarchyviewer.bat to analyse the layout, focus on the ActionMode view, you can see below: (Title ID: action_bar_title, SubTitle ID:action_bar_subtitle) 2.Find the specify TextView by the ID we found above, and just do whatever...

styles css in embeded souncloud player

css,iframe,styles,embed,soundcloud

CSS you are writing on your CSS file wont effect content of iFrame. Solutions: Do you really need an iFrame? Cant it be done using modal window or something like that? Add CSS you want to add using JS/JQuery $('iframe').load( function() { $('iframe').contents().find("head") .append($("<style type='text/css'> .my-class{display:none;} </style>")); }); ...

Give Excel style through SAS

excel,styles,export,sas

The simplest way I know of would be to create a template excel workbook with your desired style already applied, then use DDE to fill in the data ranges with the values from a matching SAS dataset. There are many resources that document how to do this.

How to delete overlay in an Android modified Holo button?

android,button,styles,overlay,android-theme

Solved, I was applying the Material Light theme, so I changed it to my style and when I run the app no overlay is showed. Thanks.

Inserting google map's script into html webpage

javascript,html,css,html5,styles

In the link you posted, it looks like it is the style selectors for html and body, as it is setting the height to 100%, which is probably messing up your layout. Try removing them from the selector, and give the map the height and width you want and see...

How can I have a TextBox style with properties of other TextBox style

wpf,styles

You can create a CustomControl (which inherits from TextBox) where you can create a DependencyProperty called CornerRadius, and then in your style, have access to the dependency property. See here for a tutorial. public System.Windows.CornerRadius CornerRadius { get { return (System.Windows.CornerRadius)GetValue(CornerRadiusProperty); } set { SetValue(CornerRadiusProperty, value); } } // Using...

TimePicker not displaying on android 4.4.2 - screenshots attached

android,dialog,styles,android-4.4-kitkat,timepicker

Just try to use ScrollView. You can put your pickers under this view. It should fix the problem on small screens. By the way maybe it's better to have 2 dialog for date and for time. It's more conventional and user friendly.

OpenLayers 3 Stroke style

styles,openlayers-3,stroke

The trick is that you have two styles. With the first style you are drawing a white line, with the second style a thinner blue line on top: var width = 3; var styles = [ new ol.style.Style({ stroke: new ol.style.Stroke({ color: 'white', width: width + 2 }) }), new...

WPF: apply style only to one tabcontrol containing other tabControl

wpf,xaml,styles,tabcontrol

You should be able to use the TabControl.ItemContainerStyle to set a named Style on the TabItems of the outer TabControl. Try this: In Resources: <Style x:Key="ItemStyle" TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <!-- template is defined here--> </ControlTemplate> </Setter.Value> </Setter> </Style> ... <TabControl x:Name="Parent" TabStripPlacement="Left" ItemsSource="{Binding Path=ParentTabItems,...

Multiple white space in html

html,styles,whitespace

There are some white space characters like &emsp; will be useful. You can use &#09; for tab. You can also use CSS for this.

Print a list with the original style

python,list,printing,styles

Try str.join : print(",".join(str.split(",")[1:4])) ...

Android - Overriding a Style per Theme

android,styles,android-theme,android-styles

Ok here is how I achieved this, 1 hour after posting the question! Might be helpful for someone else! First in attrs.xml I defined the following : <attr name="textBlockStyle" format="reference"/> The in my style.xml <style name="TextBlockStyle" parent="android:style/Widget.TextView"> <item name="android:textStyle">bold</item> <item name="android:textSize">8sp</item> <item name="android:textColor">@android:color/holo_blue_dark</item> </style> <style name="AppThemeLight"...

The position of int main() function [closed]

c++,function,styles,main,writing

When the program is in C and not C++, I always put my main function at start, so if anyone or yourself want to see the program logic, then can be seen without the need to go to the file end, and if anyone have a doubt about any function,...

Getting currently active menu title in wordpress

php,wordpress,menu,styles

update your code like this and add your css as per your requirement. <?php $menu_name = 'primary'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { $menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); $menu_list = '<ul id="menu-' . $menu_name . '"...

Android - Send email with styled HTML

android,html,colors,styles

I get a server response which provides us with HTML to be sent via gmail. No, it will be "sent" by the app of the user's choosing, from any of the apps on the device that support ACTION_SENDTO on a mailto: Uri. Or, the user could choose to not...

jquery: how to determine if a style is set via css class or hardcoded by style attribute? [duplicate]

jquery,css,styles

You can use jQuery as follows <script> $(document).ready(function() { if($('#first').attr("style").indexOf("height") != -1) { alert("height is hardcoded"); } else { alert("height is not hardcoded"); } }); </script> ...

How do I apply CSS style to ASCII character

html,css,styles,ascii,weight

Try like this: Demo CSS: p { font-weight:bold; } p span { font-weight:100; font-size:11px; } HTML: <p>Test test Test test Test test <span> &deg;</span> Test test Test test Test test Test test </p> Edit: Updated demo CSS: p, div{ font-weight:bold; } p span, div span { font-weight:100; font-size:11px; } HTML:...

Remove Combobox winrt flayout heading

combobox,windows-runtime,styles,winrt-xaml

you can set PickerFlyoutBase.Title property of combobox to either with space or text of your choice. So it would be like: PickerFlyoutBase.Title= " " or PickerFlyoutBase.Title="Some text" ...

CSS background elements on both sides of the screen

html,css,background,styles

Just do it like this: body { background:url("http://www.destadesign.com/destacms/images/background_border_left.png") left repeat-y,url("http://www.destadesign.com/destacms/images/background_border_right.png") right repeat-y; } This CSS adds two background images to body, positions them right or left respectively, and sets the repeat-y, so it doesn't fill the screen. JSFiddle Demo...

Cycle through array with animation

jquery,html,css,animation,styles

If by cycle you mean to display all the name of the games one by one before displaying the final name of the game here is what you can do, Here is a demo So I have altered the PickRandomWord() and tick() and created 2 global variables "i" and "s"...

Change the style of content dialog button in windows phone universal application

styles,windows-phone-8.1,win-universal-app

The ContentDialog buttons aren't customizable, but you can leave the ContentDialog's primary and secondary buttons unset and add your own buttons within the template.

Scala “Sentence-Like” Function Definition [duplicate]

function,scala,styles

This is referred to as Infix Notation and it doesn't require anything special so long as you have a single argument function. The reason it isn't working for you is that you need the object whose method is being called. The following compiles: class Bob { def hey(statement:String): String =...

How would you bind a DataTrigger to a Child property from a resource-defined Style?

wpf,binding,styles,datatrigger

You can use attached properties for this. For example: public static class Attached { public static readonly DependencyProperty RelatedControlProperty = DependencyProperty.RegisterAttached( "RelatedControl", typeof(UIElement), typeof(Attached)); public static void SetRelatedControl (DependencyObject element, UIElement value) { element.SetValue(RelatedControlProperty, value); } public static UIElement GetRelatedControl (DependencyObject element) { return (UIElement)element.GetValue(RelatedControlProperty); } } This property has...

while Inherit style in WPF it affect parent style

c#,xaml,styles,wpf-controls

If you declare a Style without an x:Key, it will override the default style for that control. <Style TargetType="local:CustomControl"> So the code above will effect all CustomControl elements throughout the entire application (or within the scope). If you do not want to override the base style, you can give your...

“Use Theme.AppCompat theme with this activity” Exception

android,android-actionbar,styles,themes

change the parent of your Theme.BlinkMessage to Theme.AppCompat.Light. This should fix your : <style name="Theme.Blinkmessage" parent="Theme.AppCompat.Light"> ...

Is there something like style group?

android,styles,themes

I hope it helps you.This is style where you can declare your group style, child style , single style ... just like this <style name="Widget.Group" parent="@android:style/Widget"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">46dp</item> <item name="android:layout_marginLeft">10dp</item> <item name="android:layout_marginRight">10dp</item> <item name="android:layout_marginTop">-1dp</item> <!-- Ensures we don't get a 2 dp top stroke...

How to base a style on an inherited style

c#,wpf,styles

You can use the BasedOn property: <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}"> Keep your base button style as it is: <Style TargetType="Button"> <Setter Property="Background" Value="White" /> <Setter Property="TextBlock.TextAlignment" Value="Center" /> <Setter Property="RenderTransformOrigin" Value="-0.893,-11.7"/> <Setter Property="VerticalAlignment" Value="Center"/> </Style> And apply the BasedOn property to the button on the Detail Page: <Button> <Button.Style>...

Combining style attributes this way

html,css,styles

Actually, you have to add a single style attribute with properties separated by ;, for sample: <p style="color:blue; font-size:300%">This is a paragraph.</p> ...

How to remove button border style?

button,styles,autohotkey

JoeDF has a nice example, but I didn't want to add such a big library (it does waaay more than I needed. So, I just used a picture control. gui, add, picture h16 w16 vMyButton gMyProcedure, icon0, mydll And then I wrote up a teeny library called Mousey that will...

Changing styles in Word using vba

styles,word-vba

So, there are a few ways to make your code more expandable or reusable. You could use wildcard searches to minimize the actual number of searches required. Or you could put your text strings into an array that you loop through to keep the actual code to a minimum. For...

Q: I need idea to display a string with css, jquery or any other techniques (no php)

php,jquery,css,design,styles

Wrap each character in a span, with a classname: HTML: <div id="fieldToSplit">233215334523</div> javascript: var element = document.getElementById("fieldToSplit") var data = element.innerHTML.split(""); var wrappedString = ""; for (var i = 0; i < data.length; i++) { wrappedString += "<span class='shade" + data[i] + "'>" + data[i] + "</span>"; } element.innerHTML =...

Align text in Excel cell with new line c#

c#,excel,styles,interop,excel-interop

2 points to consider: Point 1 I have noticed that you want to change vertical alignment, but you use xlHalign. Please try changing that line to ws.Cells[j, i].Style.VerticalAlignment = Microsoft.Office.Interop.Excel.XlVAlign.xlVAlignCenter; Point 2 Try removing Style. So you would have something like ws.Cells[j, i].VerticalAlignment = ... Let me know if it...

WPF - How to highlight a combobox border when focused

wpf,combobox,styles

Write your own style to highlight border and add as resource in FocusVisualStyle of Combobox.

WPF: Bind to property of a parent element

c#,wpf,xaml,binding,styles

Put the following code inside your DataGrid : <DataGrid.CellStyle> <Style TargetType="DataGridCell"> <Style.Triggers> <DataTrigger Binding="{Binding Path=IsReadOnly, RelativeSource={RelativeSource Self} }" Value="True"> <Setter Property="Background" Value="Red"/> </DataTrigger> </Style.Triggers> </Style> </DataGrid.CellStyle> ...

How to make both ListViewItem's template style and ListView.ItemTemplate working?

wpf,xaml,listview,styles

Try Like this <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListViewItem}"> <Border BorderBrush="Transparent"`enter code here` BorderThickness="0" Background="{TemplateBinding Background}"> <GridViewRowPresenter HorizontalAlignment="Stretch" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="Auto" Margin="0" Content="{TemplateBinding Content}"/>...

Nested Styles in WPF

c#,wpf,styles

I finally found the following solution: <Style x:Key="BottomButtonBar" TargetType="{x:Type Grid}"> <Style.Resources> <Style TargetType="{x:Type Button}"> <Setter Property="Margin" Value="10,2" /> <Setter Property="Width" Value="90" /> </Style> <Style TargetType="{x:Type TextBlock}"> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="2,0"/> </Style> </Style.Resources>...

Unexpected behavior of AlternativeRow BackColor in WPF

c#,wpf,datagrid,styles

Gabriel mentioned that this behavior is a known issue that raises when you try to create a brand-new style for data grid (or in general any item collection). I tried creating an style based on default style as suggested by Gabriel like following: <Style TargetType="{x:Type DataGrid}" BasedOn="{StaticResource {x:Type DataGrid}}"> <Setter...

How use layer-list to create custom background

android,xml,styles

Something like this? <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="oval" xmlns:ripple="http://schemas.android.com/apk/res-auto"> <solid android:color="#F44336" android:angle="270"/> <size android:width="56dp" android:height="56dp" /> </shape> </item> <item android:drawable="@drawable/ic_done_white_24dp" android:top="16dp" android:left="16dp" android:bottom="16dp"...

Indenting text on html select tag

css,css3,cross-browser,styles

Try normalizing the css for every browser *{ margin:0px; padding:0px; } or go to this link Normalize.css in GitHub...

How change the property of gridslide

jquery,grid,styles,photo,jssor

Hope the following links help. jssor full height or full screen slider / possible? http://www.jssor.com/testcase/full-screen-slider.source.html...

How to change window style/theme in c++

c++,user-interface,styles,window,themes

Yes, you can do it with the WinAPI. The primary message you care about is WM_NCPAINT. That's what's sent when the non-client areas of a window (e.g., the frame and title bar) need to be painted. Note that by default, rendering of the non-client areas is handled by the desktop...

How to style object when the user clicks it

html,css,styles

If you were styling a link you would use :active or :focus but as you're using this on a dom element, you would have to use jQuery to add a class to the clicked item and apply the style through that class... $('.object').click(function() { $(this).toggleClass('clicked'); }); .object { background-color: green;...

Add css to an ID in php

css,wordpress,styles

What you are doing can be achieved with css. If you are in a single.php file, you should probably have a single class on your body or html tag. If not check this out. So with this class at the top, now you can target your widget by page, single,...

Jssor slider variable width based on window width

css,slider,styles,width,jssor

You are doing right to move inline styles to css block and specify different size for various media screen. Please note that, in the way you mentioned, jssor slider will keep initial size, it will not scale according to window resize. btw, what is the following stand for? big ->...

Android app theme textViewStyle doesn't work on phone

android,xml,textview,styles,android-theme

"textViewStyle" is not defined in v22.1.1. You can find more detail from the link: https://code.google.com/p/android/issues/detail?id=170476

Define common styles in android drawables

android,styles,drawable

You can put the shape drawables into separate files and reference from your layer list items. There's an android:drawable="" attribute on item. See here: http://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList...

WPF: why my slider not show the minimum value on my label

wpf,slider,styles

The problem is with your ContentStringFormat Change the ContentStringFormat to Like this <Label Name="lblSliderSpeed" Content="{Binding ElementName=speedSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" ContentStringFormat="{}{0:00}"/> And No code Required In page Behind. Because,The "#" custom format specifier serves as a digit-placeholder symbol. If the value that is being formatted has a digit in...

Base.Widget.AppCompat.Button vs Widget.AppCompat.Button

android,styles,appcompat

In the case of AppCompat.Button, it inherits directly, and as far as I've been able to find, nothing overrides it, so they should be the same. From AppCompat styles.xml: <style name="Widget.AppCompat.Button" parent="Base.Widget.AppCompat.Button" /> But according to the AppCompat documentation, we should be using Widget.AppCompat: Top level themes These are the...

How do I convert font style to font weight in Java?

java,fonts,javafx,styles,weight

For "Regular" style, just use one of the static methods taking a font name and/or size: text.setFont(Font.font(12)); // 12 point, default font family or text.setFont(Font.font("Serif")); // default font size or text.setFont(Font.font("Serif", 12)); // 12 point serif... The FontWeight enum specifies the "weight" of the font (i.e. bold, extra bold, light,...

HTML email coding

html,email,styles

This was likely done because many email clients strip out the head element. However, the style element should go in the body element at point. The only supported child elements of html are head and body. Of course, even then, many email clients also strip out style elements, so really...

Choose Style depending on property

c#,wpf,styles,datatrigger

You can accomplish something like this with DataTamplates: <Window x:Class="StackSimpleSample.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <Grid.Resources> <Style x:Key="RedStyle" TargetType="TextBlock"> <Setter Property="Foreground" Value="Red"/> </Style> <Style x:Key="GreenStyle" TargetType="TextBlock"> <Setter Property="Foreground"...

Android custom button style not working

android,styles

You must replace style=”@style/btnStyleGenoa” to style="@style/btnStyleGenoa" Working like a charm. ...

How to change colors of Gui-elements belonging to preferences?

android,styles,preferences

Any particular reason you do not want to use AppCompat? Recent releases of AppCompat have made many new options for theming that were not available to us in Holo. (Apart from overriding drawable assets). If you do want to stick with Holo, http://android-holo-colors.com/ is a very nice for generating those...