CustomCSSforFx icon indicating copy to clipboard operation
CustomCSSforFx copied to clipboard

Menubar alignment, close icon size

Open m4n8tpr4 opened this issue 2 years ago • 6 comments

  1. Does the issue occur without any files inside /chrome/ folder? No

  2. Issue description, userChrome.css/userContent.css 'settings' the issue occurs with and steps to reproduce the issue: After an FF update some time ago, there is space between the menu bar and the tabs. I see the vertical distance is determined by the window minimize/fullsize/close icons, so either some function that reduces those icons' size or padding was lost, or the vertical alignment of the menu items changed from middle to top. I have appbutton hidden & all appbutton settings disabled, menubar enabled, default vertical tab placement.

  3. Does the issue occur with the most recent version of CustomCSSforFx (release/test/dev build)? Current version: 4.6.2 v2; unfortunately can't remember from which version the issue appeared

  4. Screenshots showing the issue (drag & drop images into this post): FF133_menubar

  5. System information

  • Windows 10
  • DPI 100%
  • Firefox version: 133.0
  • Firefox theme: default

m4n8tpr4 avatar Nov 29 '24 09:11 m4n8tpr4

You can increase the padding between menubar items an top window corner using this:

#main-menubar {
  padding-top 2px !important;
}

Aris-t2 avatar Nov 29 '24 15:11 Aris-t2

You can increase the padding between menubar items an top window corner using this:

#main-menubar {
  padding-top 2px !important;
}

Thank you! In which file should I add this? It doesn't seem to do anything if I put it in my_userChrome.css or general_variables.css.

Alternatively, is there a way to resize the window minimize/fullscreen/close icons? I found settings/.css for the tab close icons, but not the window top right icons. (If this would be a new feature rather than something I missed I'll move this to Discussions.)

EDIT: I dug around and in the end, I found my solution:

.titlebar-buttonbox-container {margin-top: -3px !important; margin-bottom:-3px !important;}
.titlebar-min {width: 40px !important;}
.titlebar-max {width: 40px !important;}
.titlebar-close {width: 40px !important;}

Now it looks more or less like I remember it from several FF updates ago.

m4n8tpr4 avatar Nov 30 '24 20:11 m4n8tpr4

where did you find this?

skaw847 avatar Dec 01 '24 11:12 skaw847

where did you find this?

If you mean which file in the CustomCSSforFx package, none: this is new code added into a custom-created file named my_userChrome.css (which is enabled at the bottom of userChrome.css).

If you mean where I found the code - I'm no pro at coding. I just ran several Google searches, and finally found multiple threads in other forums where changing the titlebar min/max/close buttonbox for various reasons was discussed. From there on it was trial & error.

m4n8tpr4 avatar Dec 01 '24 13:12 m4n8tpr4

Custom / additional code is meant to be added to the bottom of userChrome.css or my_userChrome.css.

Aris-t2 avatar Dec 01 '24 14:12 Aris-t2

Custom / additional code is meant to be added to the bottom of userChrome.css or my_userChrome.css.

Well, the padding-top code did not work in my_userChrome.css. But I just figured out the error in your code: there should have been a colon between parameter name and value. I now use this:

#main-menubar {
  padding-top:1px !important;
  padding-bottom:1px !important;
}

m4n8tpr4 avatar Dec 01 '24 15:12 m4n8tpr4