-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of custom window controls layout #174
Comments
I have made some thoughts about this, but this is a good idea to do when Pantheon Tweaks finally comes with their new feature. Then I will also know what sort of layout they start from. They will probably make a new default layout showing (and hiding) all 6 buttons, 3 on each side like you showed. Right now I don't have such a layout to start from and Pantheon Tweaks neither. We have Windows, Ubuntu and macOS layout, but they are separate and I don't think they will use these layouts as default because they don't show 3 buttons on each side. In short, we first need to know what the layout is Pantheon Tweaks will be using. Then I can work positioning the buttons from that point and we can roll out the css's in the architecture you provided. Thanks for informing me about the coming new feature of Pantheon Tweaks :) I will save it for the future. |
Additional note about idea of windows controls placement. There are only three buttons possible:
There are only six places you can put buttons on - three at left side of titlebar and three at right side:
For Windows layout places 4, 5 and 6 are used:
For MacOS layout places 1,2 and 3 are used:
For Elememtary layout places 1 and 6 are used
And so on. |
Note to self: there is a 4th button called |
According to the issue pantheon-tweaks/pantheon-tweaks#113 users will be able to configure any window controls layout with Pantheon Tweak. Theme architecture may require some changes when this feature will be implemented.
Draft solution
According to the mockup, each of window's buttons (close ⨯, maximize ⤢ and minimize ⤓) may be placed at one of six positions.
There may be three folders
close
,maximize
andminimize
- one for each of buttons.Inside button's folder there may be six stylesheets - one for each of possible button positions.
After installation
chrome
folder will containsuserChrome.css
with optionalclose.css
,maximize.css
andminimize.css
stylesheets.userChrome.css
stylesheet will import buttons stylesheets with CSS @importInstallation script will copy
close.css
,maximize.css
andminimize.css
according detected (or selected) window controls layout, e.g. when default elementary layout selected, script willThe text was updated successfully, but these errors were encountered: