summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_input_player_widget.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-01-29 12:23:30 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-01 12:42:06 -0600
commitce1895497dd6a1ab87a6ab56d344b6f5e1e36ee7 (patch)
treed5c2ec19ca9bd7ad98e45029a764630e7201a4bc /src/yuzu/configuration/configure_input_player_widget.h
parent75e81885b0bd38ece84a94b2d323b05d788f8741 (diff)
yuzu: config: Draw turbo buttons with a different color
Diffstat (limited to 'src/yuzu/configuration/configure_input_player_widget.h')
-rw-r--r--src/yuzu/configuration/configure_input_player_widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input_player_widget.h b/src/yuzu/configuration/configure_input_player_widget.h
index b258c6d77..0e9e95e85 100644
--- a/src/yuzu/configuration/configure_input_player_widget.h
+++ b/src/yuzu/configuration/configure_input_player_widget.h
@@ -81,6 +81,7 @@ private:
QColor right{};
QColor button{};
QColor button2{};
+ QColor button_turbo{};
QColor font{};
QColor font2{};
QColor highlight{};
@@ -183,6 +184,7 @@ private:
const Common::Input::ButtonStatus& pressed, float size = 1.0f);
void DrawTriggerButton(QPainter& p, QPointF center, Direction direction,
const Common::Input::ButtonStatus& pressed);
+ QColor GetButtonColor(QColor default_color, bool is_pressed, bool turbo);
// Draw battery functions
void DrawBattery(QPainter& p, QPointF center, Common::Input::BatteryLevel battery);