Force custom colors within usable range
We previously allowed fully white and yellow colors as the base color for our interface. This does not work with our icons or other interface elements. Instead I now constrain the selectable colors within a certain range of saturation and brightness. This still leaves the user in control but will prevent the common case where the user selects an overly saturated color from the color picker and ends up with an unusable or extremely ugly panel.
Showing
- src/libs/utils/stylehelper.cpp 12 additions, 1 deletionsrc/libs/utils/stylehelper.cpp
- src/libs/utils/stylehelper.h 2 additions, 0 deletionssrc/libs/utils/stylehelper.h
- src/plugins/coreplugin/fancytabwidget.cpp 1 addition, 1 deletionsrc/plugins/coreplugin/fancytabwidget.cpp
- src/plugins/coreplugin/generalsettings.cpp 1 addition, 1 deletionsrc/plugins/coreplugin/generalsettings.cpp
- src/plugins/coreplugin/mainwindow.cpp 1 addition, 1 deletionsrc/plugins/coreplugin/mainwindow.cpp
Loading
Please register or sign in to comment