19 Commits (c48a197a63e8c25b147e3c33a4f15b80c8e8244d)

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
2 years ago
MrOtherGuy 1d415561a2 Handle fullscreen window control placeholder size on linux 3 years ago
MS_Y b046ab7119
Window control placeholder consider titlebar mode's fullscreen (#180) 3 years ago
MrOtherGuy a5ac138086 fix typo in platform media queries 3 years ago
MrOtherGuy 71fe0e87c7 add basic support for -moz-platform media query 3 years ago
MrOtherGuy f973f447a1 use absolute positioning for window controls in fullscreen 3 years ago
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.
3 years ago
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
3 years ago
Jan-T. Brinkmann 47111e79b5
fix window_control_placeholder_support showing buttons on fullscreen (#147) 3 years ago
MrOtherGuy 6f24a1443f handle fullscreen mode better 3 years ago
MrOtherGuy a0c8c9c2a0 Replace all <Tab> characters with two spaces 4 years ago
MrOtherGuy 84ec1414dd Add source/license notices 4 years ago
MrOtherGuy e92118b503 Set "placeholder"-border style with !important so it works on Linux 5 years ago
MrOtherGuy 616342e7fc Use border instead of ::before and ::after for placeholders because they
would make Fx to ignore nav-bar overflow
5 years ago
MrOtherGuy ceafab2cd7 Make variables aware of tabsintitlebar 5 years ago
MrOtherGuy 53ea91d2e8 Change window control placeholders to use ::before and ::after 6 years ago
MrOtherGuy 55bcd9eed2 Notify that this sheet should be imported first 6 years ago
MrOtherGuy 8b4d97c09f Combine window placeholder support sheets 6 years ago
MrOtherGuy 5e46b7a0a3 Move window control placeholder styles to shared stylesheet 6 years ago