mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Avoid to start with both colors selected (FG & BG) at the start in the color-bar.
This commit is contained in:
parent
e5b2a9c5e7
commit
c6e6d3fe95
@ -115,10 +115,15 @@ ColorBar::ColorBar(int align)
|
||||
m_fgColor.Change.connect(&ColorBar::onFgColorButtonChange, this);
|
||||
m_bgColor.Change.connect(&ColorBar::onBgColorButtonChange, this);
|
||||
|
||||
// Get selected colors
|
||||
setFgColor(get_config_color("ColorBar", "FG", getFgColor()));
|
||||
// Set background color reading its value from the configuration.
|
||||
setBgColor(get_config_color("ColorBar", "BG", getBgColor()));
|
||||
|
||||
// Clear the selection of the BG color in the palette.
|
||||
m_paletteView.clearSelection();
|
||||
|
||||
// Set foreground color reading its value from the configuration.
|
||||
setFgColor(get_config_color("ColorBar", "FG", getFgColor()));
|
||||
|
||||
// Change color-bar background color (not ColorBar::setBgColor)
|
||||
Widget::setBgColor(((SkinTheme*)getTheme())->get_tab_selected_face_color());
|
||||
m_paletteView.setBgColor(((SkinTheme*)getTheme())->get_tab_selected_face_color());
|
||||
|
Loading…
x
Reference in New Issue
Block a user