From f0caa6d5ae9a8c1ecd778b7d22c47b09a585a148 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 3 Feb 2022 15:57:45 +0200 Subject: [PATCH] create window_control_force_linux_system_style.css --- ...indow_control_force_linux_system_style.css | 22 +++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 chrome/window_control_force_linux_system_style.css diff --git a/chrome/window_control_force_linux_system_style.css b/chrome/window_control_force_linux_system_style.css new file mode 100644 index 0000000..e316f90 --- /dev/null +++ b/chrome/window_control_force_linux_system_style.css @@ -0,0 +1,22 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/window_control_force_linux_system_style.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* This style makes Firefox use your linux system style for window control buttons. Normally those are only used with default system (auto) theme. */ + +.titlebar-button{ + list-style-image: none !important; + appearance: auto !important; +} + +.titlebar-min { + -moz-default-appearance: -moz-window-button-minimize !important; +} +.titlebar-max { + -moz-default-appearance: -moz-window-button-maximize !important; +} +.titlebar-restore { + -moz-default-appearance: -moz-window-button-restore !important; +} +.titlebar-close { + -moz-default-appearance: -moz-window-button-close !important; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 5b43288..fdb6e2d 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -148,5 +148,6 @@ "page_action_buttons_on_urlbar_hover.css":["urlbar","icon","minimal","autohide"], "integrated_searchbar_popup.css":["popup","colors"], "context_menus_more_proton.css":["proton","menu"], -"multi-row_tabs_separate_pinned_row_patch.css":["tabs","multi-row","patch"] +"multi-row_tabs_separate_pinned_row_patch.css":["tabs","multi-row","patch"], +"window_control_force_linux_system_style.css":["window-control","buttons","icon"] } diff --git a/tags.csv b/tags.csv index 765a5f2..76960b9 100644 --- a/tags.csv +++ b/tags.csv @@ -148,3 +148,4 @@ page_action_buttons_on_urlbar_hover.css,urlbar,icon,minimal,autohide integrated_searchbar_popup.css,popup,colors context_menus_more_proton.css,proton,menu multi-row_tabs_separate_pinned_row_patch.css,tabs,multi-row,patch +window_control_force_linux_system_style.css,window-control,buttons,icon