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:
parent
f49e83c565
commit
e651af21f8
2 changed files with 33 additions and 45 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue