From 43e6f38e44b6b8dfed597e1714b08e986c0cbc8f Mon Sep 17 00:00:00 2001 From: Giovani Moutinho Date: Thu, 2 Jul 2020 08:30:32 -0300 Subject: [PATCH] Update css - Fix battery primary color - Fix search container color - Fix compose panel color --- src/install-win.bat | 12 ++++++++++++ src/styles.css | 6 +++++- src/uninstall-win.bat | 4 ++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/install-win.bat create mode 100644 src/uninstall-win.bat diff --git a/src/install-win.bat b/src/install-win.bat new file mode 100644 index 0000000..4495975 --- /dev/null +++ b/src/install-win.bat @@ -0,0 +1,12 @@ +set WHATSAPP=app-2.2025.7\resources +copy /Y styles.css %WHATSAPP%\styles.css +cd %WHATSAPP% +del /S/Q tmp +rmdir /S/Q tmp +mkdir tmp +npx asar extract app.asar tmp +copy /Y app.asar backup_app.asar +type styles.css >> tmp\cssm.css +npx asar pack tmp app.asar +del /S/Q tmp +rmdir /S/Q tmp \ No newline at end of file diff --git a/src/styles.css b/src/styles.css index b725e14..551850c 100644 --- a/src/styles.css +++ b/src/styles.css @@ -129,7 +129,7 @@ --bubble-meta-icon-rgb: transparent !important; --butterbar-battery-background: var(--incoming-background) !important; --butterbar-battery-background-rgb: transparent !important; - --butterbar-battery-primary: transparent !important; + --butterbar-battery-primary: var(--accent) !important; --butterbar-battery-primary-rgb: transparent !important; --butterbar-battery-secondary: var(--text) !important; --butterbar-battery-secondary-rgb: transparent !important; @@ -187,6 +187,8 @@ --compose-background-rgb: transparent !important; --compose-background-focused: transparent !important; --compose-background-focused-rgb: transparent !important; + --compose-panel-background-hover: var(--menu-background) !important; + --compose-panel-background-hover-rgb: transparent !important; --compose-border: transparent !important; --compose-border-rgb: transparent !important; --compose-border-focused: transparent !important; @@ -388,6 +390,8 @@ --quick-action-button-background-rgb: transparent !important; --rich-text-panel-background: transparent !important; --rich-text-panel-background-rgb: transparent !important; + --search-container-background: transparent !important; + --search-container-background-rgb: transparent !important; --search-input-background: transparent !important; --search-input-background-rgb: transparent !important; --secondary: var(--text) !important; diff --git a/src/uninstall-win.bat b/src/uninstall-win.bat new file mode 100644 index 0000000..a55bce8 --- /dev/null +++ b/src/uninstall-win.bat @@ -0,0 +1,4 @@ +set WHATSAPP=app-2.2025.7\resources +cd %WHATSAPP% +copy /Y backup_app.asar app.asar +del /S/Q backup_app.asar \ No newline at end of file