serenity/Userland/Applications/Calculator
Karol Kosek 0795311356 Calculator: Set button colors from system palette
Previously, changing a system theme with Calculator opened made buttons
with custom color not to update to the new theme - the background color
remained from the previous one.

This is because when setting the color, the widget has to copy the
current palette and modify the foreground color there, which means it
will no longer refer to the system theme and any change there will not
happen here.

Using colors from a system palette fixes this issue and makes buttons
look slightly different from what was here before. But that is because
they're now somewhat more integrated with the system themes! :^)

Type                | Old color    | New color role
----                | ---------    | --------------
Numbers             | "blue"       | SyntaxNumber
Functions (sqrt, %) | "blue"       | SyntaxFunction
Operators (+ - * /) | text-default | SyntaxOperator
Backspace, CE and C | "brown"      | SyntaxControlKeyword
Memory operators, = | "red"        | SyntaxPreprocessorValue
2022-07-17 08:44:31 +01:00
..
Calculator.cpp Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
Calculator.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
CalculatorWidget.cpp LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
CalculatorWidget.h Calculator: Update mimic_pressed for refactor into the Button class 2022-04-03 12:21:50 +02:00
CalculatorWindow.gml Calculator: Set button colors from system palette 2022-07-17 08:44:31 +01:00
CMakeLists.txt Calculator: Port to LibMain :^) 2021-11-24 00:25:23 +01:00
Keypad.cpp Everywhere: Replace single-char StringView op. arguments with chars 2022-07-12 23:11:35 +02:00
Keypad.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
KeypadValue.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
KeypadValue.h Calculator: Round small number to prevent crash 2022-01-02 15:42:13 +01:00
main.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00