Swappy: Patch the colors to be red/black/white.

This commit is contained in:
Dmitry Voronin 2024-11-23 09:32:19 +03:00
parent f573be99a7
commit 2de214f667
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -9,10 +9,40 @@
accentB = color.accentDecB; accentB = color.accentDecB;
in { in {
file = pkgs.writeText "SwappyDefaultColorPatch" '' file = pkgs.writeText "SwappyDefaultColorPatch" ''
diff --git a/res/style/swappy.css b/res/style/swappy.css
index 66013b3..9c88f84 100644
--- a/res/style/swappy.css
+++ b/res/style/swappy.css
@@ -21,9 +21,9 @@
}
.color-box .color-green image {
- background-color: rgb(0, 255, 0);
+ background-color: rgb(0, 0, 0);
}
.color-box .color-blue image {
- background-color: rgb(0, 0, 255);
+ background-color: rgb(255, 255, 255);
}
diff --git a/src/application.c b/src/application.c diff --git a/src/application.c b/src/application.c
index 5b98590..86788b6 100644 index 5b98590..5c7e99c 100644
--- a/src/application.c --- a/src/application.c
+++ b/src/application.c +++ b/src/application.c
@@ -601,11 +601,11 @@ void color_red_clicked_handler(GtkWidget *widget, struct swappy_state *state) {
void color_green_clicked_handler(GtkWidget *widget,
struct swappy_state *state) {
- action_update_color_state(state, 0, 1, 0, 1, false);
+ action_update_color_state(state, 0, 0, 0, 1, false);
}
void color_blue_clicked_handler(GtkWidget *widget, struct swappy_state *state) {
- action_update_color_state(state, 0, 0, 1, 1, false);
+ action_update_color_state(state, 1, 1, 1, 1, false);
}
void color_custom_clicked_handler(GtkWidget *widget,
@@ -875,9 +875,9 @@ static gboolean is_file_from_stdin(const char *file) { @@ -875,9 +875,9 @@ static gboolean is_file_from_stdin(const char *file) {
} }