Commit graph

19 commits

Author SHA1 Message Date
MrOtherGuy
95fbda2710 Improve support for gtk-csd-reversed-placement
This patch changes how we deal with window control buttons on left
layouts. Previously, we looked to a pref that was only set on macos
but with this patch we use media queries to detect whether the system
is macOS or gtk-csd buttons use left-side layout.

To support old-style "override pref" this patch also introduces a
new custom pref userchrome.force-window-controls-on-left.enabled
which can be used e.g on Windows to move window controls to left side.
This logic is currently only supported in styles that use
window_control_placeholder_support.css
2022-12-23 13:53:51 +02:00
MrOtherGuy
1d415561a2 Handle fullscreen window control placeholder size on linux 2022-03-23 10:15:37 +02:00
MS_Y
b046ab7119
Window control placeholder consider titlebar mode's fullscreen (#180) 2022-03-23 09:59:00 +02:00
MrOtherGuy
a5ac138086 fix typo in platform media queries 2022-02-13 21:26:15 +02:00
MrOtherGuy
71fe0e87c7 add basic support for -moz-platform media query 2022-02-12 09:20:20 +02:00
MrOtherGuy
f973f447a1 use absolute positioning for window controls in fullscreen 2021-10-16 08:47:27 +03:00
MrOtherGuy
b1125f81ff Show titlebar-buttonbox if it's last-child, and make it use --toolbar-color
Using --toolbar-color allow the icons to show up if the selected theme
has light tabs but dark toolbar, and vice versa. In 95 there is no
separate #window-controls for fullscreen, and thus the titlebar-buttonbox-container
becomes last-child which we don't want to hide.
2021-10-16 07:27:31 +03:00
MrOtherGuy
6214f6e1e7 separate window-control-drag-space-width to -pre and -post
This way we can handle maximized windows not having the other drag space
like Firefox does normally. This patch additionally adds window control
width values for Win7 Win8 and linux
2021-09-19 20:31:30 +03:00
Jan-T. Brinkmann
47111e79b5
fix window_control_placeholder_support showing buttons on fullscreen (#147) 2021-09-19 18:57:33 +03:00
MrOtherGuy
6f24a1443f handle fullscreen mode better 2021-05-15 12:13:32 +03:00
MrOtherGuy
a0c8c9c2a0 Replace all <Tab> characters with two spaces 2020-05-22 09:07:26 +03:00
MrOtherGuy
84ec1414dd Add source/license notices 2020-05-22 08:13:58 +03:00
MrOtherGuy
e92118b503 Set "placeholder"-border style with !important so it works on Linux 2020-04-29 10:19:45 +03:00
MrOtherGuy
616342e7fc Use border instead of ::before and ::after for placeholders because they
would make Fx to ignore nav-bar overflow
2019-12-06 10:29:44 +02:00
MrOtherGuy
ceafab2cd7 Make variables aware of tabsintitlebar 2019-08-11 17:29:42 +03:00
MrOtherGuy
53ea91d2e8 Change window control placeholders to use ::before and ::after 2019-05-05 15:20:51 +03:00
MrOtherGuy
55bcd9eed2 Notify that this sheet should be imported first 2019-02-10 10:57:20 +02:00
MrOtherGuy
8b4d97c09f Combine window placeholder support sheets 2019-02-09 12:45:52 +02:00
MrOtherGuy
5e46b7a0a3 Move window control placeholder styles to shared stylesheet 2019-02-09 00:03:13 +02:00