1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

Calculator: Set text color through the palette

Unfortunately, this means the Calculator won't pick up system theme changes
dynamically.

Fixes https://github.com/SerenityOS/serenity/issues/1077
This commit is contained in:
Sergey Bugaev 2020-06-02 21:30:15 +03:00 committed by Andreas Kling
parent f49e83c565
commit e651af21f8
2 changed files with 33 additions and 45 deletions

View file

@ -38,9 +38,9 @@ public:
private:
CalculatorWidget();
void add_button(GUI::Button&, Calculator::Operation);
void add_button(GUI::Button&, int);
void add_button(GUI::Button&);
void add_operation_button(GUI::Button&, Calculator::Operation, Color text_color = Color::Red);
void add_digit_button(GUI::Button&, int digit);
void add_button(GUI::Button&, Color text_color);
void update_display();