Changeset View
Changeset View
Standalone View
Standalone View
src/TerminalDisplay.cpp
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 144 | { | |||
---|---|---|---|---|---|
155 | QColor buttonColor = backgroundColor.toHsv(); | 155 | QColor buttonColor = backgroundColor.toHsv(); | ||
156 | if (buttonColor.valueF() < 0.5) { | 156 | if (buttonColor.valueF() < 0.5) { | ||
157 | buttonColor = buttonColor.lighter(); | 157 | buttonColor = buttonColor.lighter(); | ||
158 | } else { | 158 | } else { | ||
159 | buttonColor = buttonColor.darker(); | 159 | buttonColor = buttonColor.darker(); | ||
160 | } | 160 | } | ||
161 | p.setColor(QPalette::Button, buttonColor); | 161 | p.setColor(QPalette::Button, buttonColor); | ||
162 | p.setColor(QPalette::Window, backgroundColor); | 162 | p.setColor(QPalette::Window, backgroundColor); | ||
163 | p.setColor(QPalette::Base, backgroundColor); | ||||
163 | p.setColor(QPalette::WindowText, buttonTextColor); | 164 | p.setColor(QPalette::WindowText, buttonTextColor); | ||
164 | p.setColor(QPalette::ButtonText, buttonTextColor); | 165 | p.setColor(QPalette::ButtonText, buttonTextColor); | ||
165 | 166 | | |||
166 | setPalette(p); | 167 | setPalette(p); | ||
167 | 168 | | |||
168 | _scrollBar->setPalette(p); | 169 | _scrollBar->setPalette(p); | ||
169 | 170 | | |||
170 | update(); | 171 | update(); | ||
▲ Show 20 Lines • Show All 3737 Lines • Show Last 20 Lines |