styling

Where can I get themes for WPF controls that resemble the Visual Studio 2010 interface?

孤街浪徒 提交于 2019-11-28 20:55:33
My application is build around AvalonDock, which has quite good Visual Studio 2010 skin (which is much prettier than all the other skins). Now I would like to style the rest of my application to go with it. I'm interested most in following parts: Toolbar - I mostly managed to get the colors right on my own, but the VS toolbars are still prettier. (Context)Menu - VS has the blue menu item focus box replaced with a nice orange one, which gives the application much warmer and friendlier feel. Main window background - this is one thing which AD didn't get right. Are these styles somewhere on the

Styling QML without manually marking each property to be styled

孤人 提交于 2019-11-28 20:23:04
问题 I know that QML does not support CSS styling like widgets do, and I have read up on alternative approaches to styling/theming: https://qt-project.org/wiki/QmlStyling http://www.slideshare.net/BurkhardStubert/practical-qml-key-navigation/34 Common for these approaches is that they require the developer to specify the parts of the QML that can be styled, either by binding to a property in a “styling QML file/singleton”, or by using a Loader to load a different QML component based on style name.

How are scrollbars in new Google Docs UI styled (esp. the arrow buttons)?

会有一股神秘感。 提交于 2019-11-28 19:17:27
The new Google Docs UI features cool gray scrollbars. These appear to be regular scrollbars styled with selectors like ::-webkit-scrollbar-thumb . Which is nice and accessible. However, I can't get arrow buttons to appear (circled on the screenshot). Inspector shows no corresponding DOM elements or any special CSS. So the question is, how these custom scrollbars are made, including the arrow buttons? Please check out this fiddle . Edit: So it seems that just not all css rules appear in the Inspector. In particular, you'd need ::-webkit-scrollbar-button:vertical:decrement and ::-webkit

height vs line-height styling

纵然是瞬间 提交于 2019-11-28 18:38:37
What is the difference between using these two when dealing with text that will never be more than a single line? They both can produce similar results on the screen from what I can see in regards to the elements on top or on the bottom of the element. Why use line-height at all if so? Height would make more sense to use. Edit: An example of this a stylized button created from a div with text inside. This will never be multiline. So would line-height be needed for compatibility reasons? or anything I don't know about? Thanks! height is the vertical measurement of the container. line-height is

How to explore styling in android

安稳与你 提交于 2019-11-28 18:27:17
I'm trying to theme my app in Android. However, each widget is an excrutiating pain in itself: I have to search for theming that particular widget and then create a style that hopefully derives from same style that widget uses. Of course, answers about theming a particular widget don't always contain info about base style, just the particular colors. So, instead of accepting fish to eat, can you teach me to fish instead? How do I interpret those ObtainStyledAttributes() calls in widget constructors and extract styles from that? How do I recurse that? In particular, can you walk me through

Android 4.0 Sub-Title (section) Label Styling [closed]

风格不统一 提交于 2019-11-28 15:03:46
So I was looking at the Android Dev Design site for ICS and all of the apps have these subtitles/section headers: I was wondering if anyone knew the custom styling to achieve labels that look like this. I couldn't find any label Views that looked like this in the Android SDK but I really like the way these look. Thanks in Advance! So this is what I ended up using: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="sectionHeader" parent="android:Widget.Holo.Light.TextView"> <item name="android:drawableBottom">@drawable

Style the nth letter in a span using CSS

纵饮孤独 提交于 2019-11-28 13:28:20
I have: <span id="string">12h12m12s</span> and I'm looking to make the h , m and s smaller than the rest of the text. I've heard of the nth-letter pseudo element in css, but it doesn't seem to be working: #string:nth-letter(3), #string:nth-letter(6), #string:nth-letter(9) { font-size: 2em; } I know I could use javascript to parse the string and replace the letter with surrounding span tags and style the tags. However, the string is updated every second and it seems parsing that often would be ressource intensive. Performance-wise, I'd recommend a span hell. <span id="string"><span id="h">12<

styling “<object>” tag inner content [duplicate]

情到浓时终转凉″ 提交于 2019-11-28 13:03:36
问题 This question already has answers here : Override body style for content in an iframe (10 answers) Closed 2 years ago . suppose we have <html> <body> <object width="435" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/SkPqgvQg3Mg"></object> </body> </html> so after the youtube video gets loaded onto html page we get a new html page inside if we inspect element onto the video. Now i want to style the inline html inside the object tag. is there any way to do it?

How to style facebook like button?

一个人想着一个人 提交于 2019-11-28 12:02:50
问题 I am trying to apply css to facebook like button. I know that it is violating TOS to change how the like button look. All I am trying to do is change the background of facebook like button to make it consistence with my website. I googled about it and found several articles that I can style facebook like button if I am using fbml because fbml does not use iframe. The problem is, it looks like facebook is using iframe for fbml as well. as far as I know, I can't directly style a webpage that is

Blinking button on WPF application

杀马特。学长 韩版系。学妹 提交于 2019-11-28 11:58:33
My WPF application has a style manager that I have built on blend. My problem is this: I've got a login button that blinks occasionally and i can't figure out how to remove this behavior. Here's the style code for my login box: <Style x:Key="LoginBoxGrid" TargetType="{x:Type Grid}"> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/Client;component/Assets/images/LoginBox.png" Stretch="None" TileMode="Tile"/> </Setter.Value> </Setter> <Setter Property="Opacity" Value="0.765"/> <Setter Property="Width" Value="411"/> <Setter Property="HorizontalAlignment" Value="Left"/>