Menu

#66 Buttons etc in UNO

open
nobody
None
5
2013-03-16
2013-03-16
beojan
No

Would it be possible to invert colors for buttons, comboboxes, etc placed in an UNO titlebar (or menubar, irritatingly). Examples include the buttons in Krita and the tabbar in Kdevelop

Discussion

  • Thomas Luebking

    Thomas Luebking - 2013-03-16

    Not again widgets in menubars...

    "Invert" rather not, but pick a reasonable color (ie. behave like toolbuttons)
    I recall chasing after the esp. kdevelop case several times.

    Can you attach screenshots of your situation; i've neither application installed and inb4: just kate ;-)

     
  • beojan

    beojan - 2013-03-16

    Screenshot of both applications attached.
    Since I have window text selected as my UNO role, inverting colors would be the best option. The general suggestion I would make is to invert colors if window text or button text is selected as the UNO role.

    In kdevelop, it appears the problem is caused because kdevelop puts onto each tab a QHBoxLayout containing two labels, iconLabel and textLabel. As a result, the text color is windowtext rather than the color that the tabbars text would be, and the icon is slightly larger than the tab. This can only really be solved by detecting the situation explicitly, and correcting the textLabel color and icon size. However, changing the tabbar background to window, from the window text that I currently have selected, works around part of the problem.

     
  • beojan

    beojan - 2013-03-16

    Actually, scratch that, changing the tabbar background doesn't help because kdevelop seems to remove that. Really, I can't see why they didn't just use toggling toolbar buttons.

     

Anonymous
Anonymous

Add attachments
Cancel