-
Notifications
You must be signed in to change notification settings - Fork 10
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
Window controls not properly displayed #8
Comments
In I am unable to test on linux, but I know of another user of linux and this worked for them. I'll see if I can get a VM running and test when I have time. For the close buttons, they had to be removed when i added the tab collapsing and autohiding features, they would repeatedly break the scrollbox regardless of hover events. You can remove |
Np, yeah these definitely seem to be linux related even the line near the side panel. Im gonna download manjaro for VM soon and see whats going on. |
Found the fix for second issue, |
really? thats how i had it before 'no background color' but kept the width. What did you change? |
.sidebar-splitter {
background: transparent;
} The issue was caused by browser CSS .sidebar-splitter {
appearance: none;
width: 6px;
background-color: -moz-dialog;
border: 1px ThreeDShadow;
border-style: none solid;
} Particularly that |
The closest that comes to my mind is Colors tab, other than that maybe just dark themes. |
Yeah i figured it out, SO.. I was able to recreate your issues. Fixing the sidebar splitter transparency ✅ In the browser tool theres no indication of changes, or even hover events when it happens its so strange... Maybe in the future ill figure this one out, but I'm leaning towards this being a linux theme behavior. Perhaps theres a setting that effects gnome/gtk windows, idk. I'll update the main release soon, for now Ive updated the replacement file with my edits for linux users. |
Weird enough, this bug doesn't occur in default Firefox, so theme must be doing something odd to windows controls |
This is for manjaro right? |
kde? |
Yes, but it's probably not limited to single distribution. Maybe only possible DE, as these use different decorators. |
I still have the vm for it so ill figure it out in a bit. |
This hack don't cause this kind of issue for me, you should start with this. |
Seems, like there still is this issues with window controls + themes combo, especially light themes. Tested on main. And hack mentioned before has this issue too, unfortunately. 2024-04-15.19-55-13.mkv.webm |
yeah i know its really annoying, i tried opacity properties on the buttons, to the buttonbox, to the bars and up, then i tried removing my already established navbar opacity override but it was only targetting windows anyway, tried seeing if i could overide the background colors and **strokes, the behavior is so odd. I think using linux themes may just have to be the fix. also, the grey background around the tabs, i fixed it a while after uploading 1.7 you should grab that. |
I actually havent tried replacing the icons with my own, i might just see how that looks |
That's hardly a fix, I think. But weirdly enough, this only happen on light-themes as seen in previous video. Firefox automatically changes color preference on changing toolbar color, from my understanding, but this is just probably correlation. Here's video of changing Colors in KDE, as seen, windows controls change, but they revert. |
Ah, so they implemented stroking on Windows, but then on Linux, they just gave half-assed solution instead that just breaks more things, wish they just leave it as it was by default. |
Yeah, I also just found out that you arent allowed to edit the moz-default appearance property also. |
Isn't this property deprecated in favor of plain EDIT: Ok, background svg to support stroke changing, but only if imported inline, so that's closes external svgs. background-image: url('data:image/svg+xml;utf8, <svg class="ThemeTogglerIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="yellow" stroke="yellow" d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z" /></svg>'); You would just use currentColor there to inherit color from parent element. |
im probably doing it wrong though, appearance is responsive, i can set it to none to remove the buttons. So im missing something here |
Well, it seems fine. Only nitpick would be no maximized button, but if it can't be done easily, then nvm. But noticed some regression about vertical tab, there seems to be instantaneous widening of vertical tab slightly, then linear transition, I suspect it might be of text label suddenly appearing. You can look my old branch for comparison. |
On another topic, why are there 2 |
Theyre just old duplicates, ive removed them.
Its fine, like i said before, its easily enabled in tweak settings
When i get the chance ill add an animation to the mini button bar labels, its the instant transfer from display none to visible, it basically interrupts the linear transition applied to default .tabbrowser-tab behavior. |
I meant separate state to maximize button, when window is maximized. In KDE it is empty square rotated 45 deg. In Gnome dunno. |
Aww you mean the icons. So I just used the same arrow up icon for the restore-button, it can definitely be changed just need to find a good replacement. You can see all of them here: chrome://global/skin/icons/](chrome://global/skin/icons/ Also there is chrome://browser/skin/window-controls/ but im not sure what this link will produce on linux i cant check right now. |
If there is none, we can always use one locally imported. |
I made some replacements while we were working on the buttons yesterday, although i would need to test if the svgs respond to fill properties properly first - since they were converted to svg with an online tool. |
there is an issue though, i cant get the svg to respond to variables within firefox, only basic inversion for light/dark mode |
Lookup |
yes i have that already thats what works with light and dark, it wont respond to themes however |
Alright 3 files are added to the main.update.branch FF-ULTIMA/theme/override-linux.css Lines 115 to 124 in 96eff4e
override-linux.css (line 115--) |
So it is my svg hmm, so where do you think i should source the svgs specifically for this case, ive been creating every icon i use previously |
Ok, found similar svgs, but would need to be modified heavily, as code is tailored in specific way |
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 22">
<path fill="currentColor" d="m16.6569 8.9951-.7072-.7071L11 13.2377 6.0503 8.288l-.7072.7071L11 14.652Z"/>
</svg> Here is the code for |
Okay most sensible solution, would be to op-in on this only when theme is in use, as fuckery happens only then. Just simple changing this will work fine, only missing are state changes, but these would work fine too, I presume. .titlebar-min > .toolbarbutton-icon {
background-image: url("icons/minimize.svg") !important;
} |
ok, for some reason Working svg: <svg
xmlns='http://www.w3.org/2000/svg'
version='1.1'
viewBox='0 0 22 22'
fill='context-fill'>
<path d='m16.6569 8.9951-.7072-.7071L11 13.2377 6.0503 8.288l-.7072.7071L11 14.652Z' />
</svg> |
with this, it wouldnt need any further modification with all 3 scenarios dark/light/themed, i added the contextfill to the svg and updated the main.update.branch. I could then just further improve the svg (the size isnt exactly 1:1 with the other titlebar buttons) FF-ULTIMA/theme/override-linux.css Lines 91 to 105 in 233a598
|
Here are some svg for default KDE: <svg
xmlns='http://www.w3.org/2000/svg'
version='1.1'
viewBox='0 0 22 22'
fill='context-fill'>
<path d='m16.6569 8.9951-.7072-.7071L11 13.2377 6.0503 8.288l-.7072.7071L11 14.652Z' />
</svg> Maximize would be the same just rotated. <svg
xmlns='http://www.w3.org/2000/svg'
version='1.1'
viewBox='0 0 22 22'
fill='context-fill'>
<path d='m11 16.652 5.656-5.656L11 5.338l-5.656 5.658Zm0-1.414-4.242-4.242L11 6.752l4.242 4.244Z' />
</svg> Close: <svg
xmlns='http://www.w3.org/2000/svg'
version='1.1'
viewBox='0 0 22 22'
fill='currentColor'>
<path d='M10.9902 2A9 9 0 0 0 2 11a9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9 9 9 0 0 0-.0098 0zm-3.703 4.58L11 10.293l3.7129-3.713.707.7071L11.707 11l3.713 3.7129-.7071.707L11 11.707 7.2871 15.42l-.707-.7071L10.293 11 6.58 7.2871Z' />
</svg> Although close should probably be change to just be cross without background, as that would come from css: <svg
xmlns='http://www.w3.org/2000/svg'
version='1.1'
viewBox='0 0 22 22'
fill='context-fill'>
<path d='M7.2872 6.58 11 10.293l3.7129-3.713.707.7071L11.707 11l3.713 3.7129-.7071.707L11 11.707 7.2871 15.42l-.707-.7071L10.293 11 6.58 7.2871Z' />
</svg> |
Importing them locally also has the benefit of user potentially replacing these images with their own, as writing as many pref as windows decorators is not exactly efficient. |
I posted source earlier?????? |
Aw got it, my bad im doing this in between studies. So ive added this all into the update branch. It took a while for me to figure out the rotation (lack of experience with svgs). But i simplified it
|
|
I would like to start with thank you for theme, first impression was great, I disliked TreeStyleTab for its clunkiest and hack-ines.
But I noticed some problems.
As you can see, controls are not properly displayed.
I would like them to at least align in the center, and maybe moved slightly to the left.
While my initial approach of adding width to #titlebar-buttonbox worked, it posed some difficulties.
Ghost controls are seen in the background, unsure where to find them in CSS.
Platform: Linux Manjaro 64-bit
DE: Plasma 5
Will try if this is the same without Ultima later.
And I would like to add that most of the themes in Firefox break controls, they are too large to toolbox.
And another slightly smaller issue I have, no close tab button on tabs.
Unsure if this is some option, as in some of your screen you have them, then on some don't.
Thanks
The text was updated successfully, but these errors were encountered: