From 2de214f66706015972962926094eadf0ec630618 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 23 Nov 2024 09:32:19 +0300 Subject: [PATCH] Swappy: Patch the colors to be red/black/white. --- patch/swappy/DefaultColor.nix | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/patch/swappy/DefaultColor.nix b/patch/swappy/DefaultColor.nix index 89146427..39486c5c 100644 --- a/patch/swappy/DefaultColor.nix +++ b/patch/swappy/DefaultColor.nix @@ -9,10 +9,40 @@ accentB = color.accentDecB; in { 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 -index 5b98590..86788b6 100644 +index 5b98590..5c7e99c 100644 --- a/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) { }