mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-23 01:56:08 -04:00
edit: rainbow_style.cpp
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#include "citron/uisettings.h"
|
||||
#include "citron/theme.h"
|
||||
#include <QApplication>
|
||||
#include <QPalette>
|
||||
#include <QWidget>
|
||||
#include <QColor>
|
||||
#include <QTimer>
|
||||
|
||||
float RainbowStyle::s_hue = 0.0f;
|
||||
|
||||
@@ -16,10 +16,10 @@ RainbowStyle::RainbowStyle(QStyle* baseStyle) : QProxyStyle(baseStyle) {
|
||||
}
|
||||
|
||||
void RainbowStyle::UpdateHue() {
|
||||
if (UISettings::values.enable_rainbow_mode.GetValue()) {
|
||||
s_hue += 0.005f;
|
||||
if (s_hue > 1.0f) s_hue = 0.0f;
|
||||
}
|
||||
if (UISettings::values.enable_rainbow_mode.GetValue()) {
|
||||
s_hue += 0.005f;
|
||||
if (s_hue > 1.0f) s_hue = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
QColor RainbowStyle::GetCurrentHighlightColor() {
|
||||
|
||||
Reference in New Issue
Block a user