TabBar
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: TabBar
No problem, I'll stay tuned to changes and improvements
Thanks
Thanks
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Re: TabBar
Qt uses toolbar object name itself to identify toolbars. Therefore i probably won't change toolbar object name dynamically in TabBar. What i probably could do is to change tool buttons object name when toolbar changes orientation. Now as for that to make sense i guess there must be a good reason to do that. Note that selector menu button will use the same mode as quick menu button in the future. Therefore if you have problems only with styling selector menu button this will resolve itself in the future.
Or is there more to it?
Or is there more to it?
Re: TabBar
The problem arises on how toolbar are named when horizontal and vertical... I don't know why but it don't fully works. Try this:
You will see that it always apply the blue color but cannot make the button get the red color when horizontal and blue when vertical.
This is just a test of course, but it limits me to correctly style the 2 positions separately.
So I arrive to this:
Theoretical solution (horizontal, not working perfectly) Theoretical solution (vertical, not working perfectly) Desired solution (horizontal) Desired solution (vertical) Both "desired solutions" are different stylesheets so that's why I would like another way to style them separately so that I'm able to write an unique stylesheet.
Code: Select all
QToolBar:horizontal#TabBar QToolButton {
background-color: red;
}
QToolBar:vertical#TabBar QToolButton {
background-color: blue;
}
This is just a test of course, but it limits me to correctly style the 2 positions separately.
So I arrive to this:
Theoretical solution (horizontal, not working perfectly) Theoretical solution (vertical, not working perfectly) Desired solution (horizontal) Desired solution (vertical) Both "desired solutions" are different stylesheets so that's why I would like another way to style them separately so that I'm able to write an unique stylesheet.
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Re: TabBar
I see. Well i will probably have some free time this weekend and i will try to implement support for mentioned use case.
Re: TabBar
ToolBar mode style improvements
- Changed Compact Menu (Toolbar mode) default pop-up menu mode
- Ability to independently style horizontal/vertical ToolBar buttons (feature request by @pablogil)
- Changed Compact Menu (Toolbar mode) default pop-up menu mode
- Ability to independently style horizontal/vertical ToolBar buttons (feature request by @pablogil)
Code: Select all
QToolButton[toolbar_orientation="horizontal"] {
background-color: red;
}
QToolButton[toolbar_orientation="vertical"] {
background-color: blue;
}
Re: TabBar
It works like a charm, thank you! I will release very soon the styles =)
One additional question: the toolbar compact menu button and the preferences menu button, what element they are? I have seen they don't get the styles and images I have designed on my regular stylesheets...
Thank you!
One additional question: the toolbar compact menu button and the preferences menu button, what element they are? I have seen they don't get the styles and images I have designed on my regular stylesheets...
Thank you!
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Re: TabBar
You're welcome.pablogil wrote:It works like a charm, thank you!
All the buttons on the toolbar are QToolButtons. Mentioned two have icon only (without text) tool button style applied (not by using stylesheet) and InstantPopup popup mode is set.One additional question: the toolbar compact menu button and the preferences menu button, what element they are? I have seen they don't get the styles and images I have designed on my regular stylesheets...
Re: TabBar
@triplus
Have you checked that on FreeCAD 0.17 if you go into an sketch the TabBar toolbar goes empty?
Have you checked that on FreeCAD 0.17 if you go into an sketch the TabBar toolbar goes empty?
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Re: TabBar
No. As i don't use development release ATM. Thanks for the report and i will look into it.pablogil wrote:@triplus
Have you checked that on FreeCAD 0.17 if you go into an sketch the TabBar toolbar goes empty?
P.S. Until i look into it in more detail you can use TabBar preferences -> Selector tab -> Custom mode to disable Sketcher Workbench. Instead of using Tools -> Customizing -> Workbenches.
Re: TabBar
Improved workbench activation detection
- Improved workbench activation detection (issue reported by pablogil))
- Bar mode: option to enable/disable selector menu
- Bar mode: option to move selector menu to the end
- ToolBar mode: option to move selector menu to the end
- ToolBar mode: Quick Menu and Selector button now follow set style (Icon and text, Icon, Text)
- Don't set workbench QAction object name (avoid duplicates)
- Changed Toolbar preferences selector menu button default menu pop-up mode
- Improved workbench activation detection (issue reported by pablogil))
- Bar mode: option to enable/disable selector menu
- Bar mode: option to move selector menu to the end
- ToolBar mode: option to move selector menu to the end
- ToolBar mode: Quick Menu and Selector button now follow set style (Icon and text, Icon, Text)
- Don't set workbench QAction object name (avoid duplicates)
- Changed Toolbar preferences selector menu button default menu pop-up mode