Changeset View
Changeset View
Standalone View
Standalone View
src/ColorSchemeEditor.cpp
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Line(s) | |||||
253 | 253 | | |||
254 | void ColorSchemeEditor::setBlur(bool blur) | 254 | void ColorSchemeEditor::setBlur(bool blur) | ||
255 | { | 255 | { | ||
256 | _colors->setBlur(blur); | 256 | _colors->setBlur(blur); | ||
257 | } | 257 | } | ||
258 | 258 | | |||
259 | void ColorSchemeEditor::setRandomizedBackgroundColor(bool randomized) | 259 | void ColorSchemeEditor::setRandomizedBackgroundColor(bool randomized) | ||
260 | { | 260 | { | ||
261 | _colors->setRandomizedBackgroundColor(randomized); | 261 | _colors->setColorRandomization(randomized); | ||
262 | } | 262 | } | ||
263 | 263 | | |||
264 | void ColorSchemeEditor::setup(const ColorScheme *scheme, bool isNewScheme) | 264 | void ColorSchemeEditor::setup(const ColorScheme *scheme, bool isNewScheme) | ||
265 | { | 265 | { | ||
266 | _isNewScheme = isNewScheme; | 266 | _isNewScheme = isNewScheme; | ||
267 | 267 | | |||
268 | delete _colors; | 268 | delete _colors; | ||
269 | 269 | | |||
Show All 16 Lines | |||||
286 | const int transparencyPercent = qRound((1 - _colors->opacity()) * 100); | 286 | const int transparencyPercent = qRound((1 - _colors->opacity()) * 100); | ||
287 | _ui->transparencySlider->setValue(transparencyPercent); | 287 | _ui->transparencySlider->setValue(transparencyPercent); | ||
288 | setTransparencyPercentLabel(transparencyPercent); | 288 | setTransparencyPercentLabel(transparencyPercent); | ||
289 | 289 | | |||
290 | // blur behind window checkbox | 290 | // blur behind window checkbox | ||
291 | _ui->blurCheckBox->setChecked(scheme->blur()); | 291 | _ui->blurCheckBox->setChecked(scheme->blur()); | ||
292 | 292 | | |||
293 | // randomized background color checkbox | 293 | // randomized background color checkbox | ||
294 | _ui->randomizedBackgroundCheck->setChecked(scheme->randomizedBackgroundColor()); | 294 | _ui->randomizedBackgroundCheck->setChecked(scheme->isColorRandomizationEnabled()); | ||
295 | 295 | | |||
296 | // wallpaper stuff | 296 | // wallpaper stuff | ||
297 | _ui->wallpaperPath->setText(scheme->wallpaper()->path()); | 297 | _ui->wallpaperPath->setText(scheme->wallpaper()->path()); | ||
298 | } | 298 | } | ||
299 | 299 | | |||
300 | void ColorSchemeEditor::setupColorTable(const ColorScheme *colors) | 300 | void ColorSchemeEditor::setupColorTable(const ColorScheme *colors) | ||
301 | { | 301 | { | ||
302 | ColorEntry table[TABLE_COLORS]; | 302 | ColorEntry table[TABLE_COLORS]; | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |