styling

Qt 5 Styling: dynamically load qml files

余生颓废 提交于 2019-11-29 22:56:36
问题 I am currently trying to extend our application with different style. For each style I have a separate qml file with e.g. color definitions. StyleA.qml: import QtQuick 2.0 QtObject { property color textColorStandard: 'black' ... } In my main.qml I would like to load the right qml file, based on a software property: import QtQuick 2.0 Item { id: mainPanel .... Loader { id: myDynamicStyle source: Property.UseThemeA? "StyleA.qml" : "StyleB.qml" } ... Item { id: BackGround color: myDynamicStyle

How to place a ScrollViewer on top of the content it should scroll

混江龙づ霸主 提交于 2019-11-29 18:53:06
问题 I would like to put my ScrollViewer in such a way that it overlaps/sits on top of the content it scrolls. I would set the Opacity of the ScrollViewer so that the content is visible underneath. As far as I understand the default ScrollViewer, this doesn't seem to be possible out of the box since the content is nested inside the ScrollViewer. Any ideas on how to make this work? EDIT: I understand that the ScrollViewer is a Decorator and that the content is not aware of the ScrollViewer. This

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

前提是你 提交于 2019-11-29 18:13:37
This question already has an answer here: Override body style for content in an iframe 10 answers 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?? Short answer: no. There is no way to do what you want with CSS included in your page because CSS only applies inside

How to style facebook like button?

怎甘沉沦 提交于 2019-11-29 17:35:51
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 included in an iframe. Is there an api for styling (in my case, changing background only!!) the like

How do I style the ports of record based nodes in GraphViz?

强颜欢笑 提交于 2019-11-29 15:40:34
问题 I'm feeding this simple input script defining record based nodes to dot in order to create a SVG from it (the SVG part actually doesn't matter): graph mygraph{ node [shape=record, fontsize=10, fontname=Arial]; rankdir=TB; ranksep=0.5; rank=max; splines=true; overlap=false; mindist=0.2; "d1" [style=solid, label="{\N|{<0> 0|<1> 1}}"]; "d2" [style=solid, label="{\N|{<0> 0|<1> 1|<2> 2|<3> 3}}"]; "d1":0 -- "d2":0[color=blue, penwidth=3, tooltip="d1:0 -- d2:0", URL="#"]; } This yields a graph where

Shadow DOM styling from the outside

廉价感情. 提交于 2019-11-29 13:22:29
I am searching a way to styling shadow DOM from the outside. For example, I would like to set the color of all text in all 'span.special' elements as RED. Including 'span.special' elements from shadow DOM. How I can do this? Previously there were ::shadow pseudo-element and /deep/ combinator aka >>> for this purpose. So I could write something like span.special, *::shadow span.special { color: red } But now ::shadow , /deep/ and >>> are deprecated. So, what do we have as a replacement of them? Well, @import is not a solution if you are working with library web component that you can't change .

Styling WPF ComboBox items

与世无争的帅哥 提交于 2019-11-29 13:12:13
I have a very simple WPF application which displays a ComboBox which binds to a list of classes which represent people. Each 'Person' object has a Name string field, and a Sex enum. I would like the ComboBox to display a drop-down of the various people's Name field, but for each line to be styled according to the Sex field, for example, blue for males, pink for females. Can anyone tell me what I am doing wrong? Here is the XML: <Window x:Class="ComboBoxColour.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

What is the best approach towards styling GWT applications?

北战南征 提交于 2019-11-29 09:48:09
问题 General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app through CSS tinkering, I was wondering how others generally approach styling. Some of the suggestions I came across the web were to manage layout with plain HTML, through use of HTMLPanel's. This way one can straightaway use the HTML mock-up within the application without having to code all the layout. So what in your opinion

Android ListView with complex header

梦想的初衷 提交于 2019-11-29 07:15:01
I'm trying to add a complex / non-trivial header to a ListView (and slightly less complex footer) that needs to scroll along with the rest of the content. The header consists of a TextView with bold text, black transparent background and rounded corners a TextView with normal text, black transparent background an ImageView a clickable button (actually an ImageView with onClick) and a divider I'm familiar with addHeaderView, but if I try to add a complex view (consisting of a LinearLayout with multiple children), I only see the first child of the complex header in the listview as header. Also,

WPF DataGrid style-Silverlight DataGrid?

两盒软妹~` 提交于 2019-11-28 21:16:09
That's not a secret: Silverlight's DataGrid default style is beautiful while WPF's is poor. Instead of reinventing the wheel let me ask the community if anyone has copied the SL styles to use in WPF. Please take a look at the screenshots and judge for yourself how the Silverlight and WPF teams invest in their products. Silverlight default-style DataGrid: WPF default-style DataGrid (updated after Saied K's answer): T. Webster I haven't found any projects with a working Silverlight-style DataGrid , so I created one on Codeplex: http://datagridthemesfromsl.codeplex.com Doesn't have all the themes