How can I give a specific color (Let's say red) to the border of dropdown menu of Flex PopUpButton.
Also if how can I set text properties (text should be bold) of dropdown Menu of PopUpButton.
Thanks in advance
- Atul
Go to:
Flex3 Style Explorer
On the left select Buttons and select PopUpButton and you will be able to see the styles you can change for this control...
For example,
change border color with: borderColor: #ff0000;
there color with: themeColor: #ff0000;
etc...
Ladislav
Related
I try to stylizing a Material Checkbox (https://material.angular.io/components/checkbox/overview). There are several things that I have done without problems (like change color, border etc). I would like, but I can't seem to do it, only when the checkbox is unchecked, display the checkmark on hover. As the example on the right in the picture, this to indicate that we can click on the checkbox checkbox-hover
Any ideas ? Thank you !
The checkmark is hidden by setting the SVG path's stroke-dashoffset to ~23px.
In order for the checkmark to be shown on hover you'll want a CSS rule to set this value to 0px and supply a background colour to the checkbox so the checkmark can be seen.
I know p:selectCheckboxMenu has all its style classes, but i want to change something.
I would want that when i open the menu and move with the mouse over an item, it will be highlighted in blue. I want it to be highlighted only when the mouse is over that item.
i think that the css class i need to override is : .ui-selectcheckboxmenu-item which means
Each options in the collection.
(from the primefaces 5.0 documentation)
I am kind of a novice in css....any suggestions?
You can use the :hover pseudo-selector.
If .ui-selectcheckboxmenu-item select the elements that you want to highlight, then with this code should work:
.ui-selectcheckboxmenu-item:hover{
background-color: blue;
}
based off code in my prior question: CSS radius and hover fill entire area
how do i get the tab that is selected to have the same background color of the visible box below? the rest of the tabs i want to remain the default color. this way the user knows which tab is selected very easily.
i see the ui-state-default ui-corner-top ui-tabs-selected ui-state-active classes but can't get the css right to make it work.
help?
Do you want to highlight a tab on hover? I moved your background color into your class .ui-state-default and added a pseudo statement.
Here is a working Live Demo. Is this you want?
I want to give some color to the area where they are toolbox buttons with icons (light grey on picture). Please help in determining what is a parameter style sheet?
If I understand correctly, you are trying to change the background color of the toolbar area.
Suppose I have a mainwindow with a toolbar called mainToolBar. Here is what I did :
ui->mainToolBar->setStyleSheet("QWidget { background : red; } QToolButton { background : green; }");
The first part of the stylesheet will change the background color of the toolbar where there is no toolbuttons.
The second part of the stylesheet will change the background color of the toolbuttons.
Note : I tested the code snippet above on Windows, I suppose it should work on a Mac too, but I cannot guarantee.
I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color)
i.e.
<mx:Form>
<mx:FormItem label="username:">
<mx:TextInput />
</mx:FormItem>
</mx:Form>
I would like to make the label with 'username:' have a different background color, but have the text input still be the default background color.
is this possible with a FormItem ?
A formitem has an object it uses to display the label called the FormItemLabel, this objects purpose is so you can style the label of a form item.
In flex 2 to change the style you can try:
FormItemLabel {
}
However I looked over the flex 2 lang ref and it doesn't seem like you can change the background color of the label. Click here for lang ref link
If you are using flex 3 the desired way to change the label of the FormItem is through the formitems labelStyleName
FormItem {
labelStyleName: newStyle;
}
However once again I don't believe they added the ability to change the background color of the label itself. Click here for lang ref link
Best choice of action if this is required would be to extend the formitem class, unless anyone else has any ideas.
Hope this helps...
As I see problem "hangs unanswered" for two years... and I need exactly the same functionality - different background color for label side.
I am using Flex3. I tried Form background - that changes whole form. Then tried FormItem - if you have only text entry - it does cover background, but if you have few buttons, gap between them is also of the same color. You then need extra HBox with another background. And also there is no gap between Label background and input control.
I do not want to rewrite FormItem control.
Seems I will need to use my ancestors style: Grid instead of forms and GridItem instead of FormItem. Then you can style each cell in whatever color. :o(
Try using the flex style explorers to create your desired style:
Flex 3 Style Explorer
Flex 2 Style Explorer
I used the TextArea in the style explorer and formatted the background color which gave the following css output:
TextArea {
backgroundColor: #0000ff;
}
You can change this to the following to include in you stylesheet:
.formLabel {
backgroundColor: #0000ff;
}
Then in the FormItem tag:
<FormItem label="Label" styleName="formLabel" />
More info on Flex Style Sheets:
Flex Style Sheets
These examples will show that you can declare styles within the mxml Style tags rather than an external style sheet if you would like.