Skip to content
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

userChrome broken in G5 #2780

Closed
1 task done
K4sum1 opened this issue Aug 17, 2022 · 19 comments
Closed
1 task done

userChrome broken in G5 #2780

K4sum1 opened this issue Aug 17, 2022 · 19 comments
Labels

Comments

@K4sum1
Copy link

K4sum1 commented Aug 17, 2022

What happened?

Because of the modified theme, userChrome.css is kinda broken.

ScreenShot_20220817122501

Reproducible?

  • I have tested this on Firefox.

Version

Other

What platform are you seeing the problem on?

Windows

Relevant log output

No response

@K4sum1 K4sum1 added the bug label Aug 17, 2022
@MrAlex94
Copy link
Collaborator

Thanks - will try and detect if a custom userChrome is being set and unregister the default userChromes when that happens.

As a quick workaround, could you try installing a random theme such as: https://addons.mozilla.org/en-US/firefox/addon/pure-neutral/?

@K4sum1
Copy link
Author

K4sum1 commented Aug 17, 2022

As a quick workaround, could you try installing a random theme such as: https://addons.mozilla.org/en-US/firefox/addon/pure-neutral/?

It kinda works but not really, it's still bugged like that.

@starfan101
Copy link

dose anyone have a link too the g5 so i can test it

@troysjanda
Copy link

Should add back the original Firefox default themes. Let the user decide the theme they would like to use.

@MrAlex94
Copy link
Collaborator

As a quick workaround, could you try installing a random theme such as: https://addons.mozilla.org/en-US/firefox/addon/pure-neutral/?

It kinda works but not really, it's still bugged like that.

Hmm, might be something else then. Do your customisations work on ESR102?

@thunderstone135
Copy link

@MrAlex94:
I noticed that you updated Lepton. The reason the theme is no longer working is due to the CSS code being placed in userChrome.css inside omni.ja. The CSS code should be placed in leptonChrome.css and just mentioned in userChrome.css using this line:

@import url("css/leptonChrome.css");

Additionally, the updated Lepton is now using user.js.

@K4sum1
Copy link
Author

K4sum1 commented Aug 18, 2022

As a quick workaround, could you try installing a random theme such as: https://addons.mozilla.org/en-US/firefox/addon/pure-neutral/?

It kinda works but not really, it's still bugged like that.

Hmm, might be something else then. Do your customisations work on ESR102?

I don't need to test ESR102, they worked fine on Firefox 101, 102, and 103. ESR shouldn't be any different.

@Keefaetana
Copy link

@MrAlex94: I noticed that you updated Lepton. The reason the theme is no longer working is due to the CSS code being placed in userChrome.css inside omni.ja. The CSS code should be placed in leptonChrome.css and just mentioned in userChrome.css using this line:

@import url("css/leptonChrome.css");

Additionally, the updated Lepton is now using user.js.

Perhaps something about this is why Tab Mix Plus can't do multi-row tabs anymore, too?

@thunderstone135
Copy link

thunderstone135 commented Aug 19, 2022

Perhaps something about this is why Tab Mix Plus can't do multi-row tabs anymore, too?

I'm not sure since I'm not using the Multi-row tabs feature of Tab Mix Plus. You have to ask @onemen or @black7375 about it.

@black7375
Copy link
Contributor

black7375 commented Aug 19, 2022

Is Waterfox G5 using Lepton v5.0.0 or higher?
All options are activated using configs, and nothing changes without options.


The reason for conflicting with TabMixPlus is because of !important in userChromeCSS.
In userChromeCSS, it does not work without !important due to css loading order.

@onemen
Copy link
Contributor

onemen commented Aug 19, 2022

Try to change the theme, currently Tab Mix Plus multi-row work only with modern theme.

Anyone that is willing to help me make Tab Mix Plus work with all Waterfox theme please post a PR here

@MrAlex94
Copy link
Collaborator

MrAlex94 commented Sep 5, 2022

I've added a pref, userChrome.theme.enable, which can be toggled to false to disable the Lepton customisations.

This will be in Beta 2 - so hopefully people can try and see if it stops conflicting with their specific customisations.

@troysjanda
Copy link

troysjanda commented Sep 5, 2022 via email

@thunderstone135
Copy link

thunderstone135 commented Sep 6, 2022

@MrAlex94
You actually don't need to disable the Lepton theme. You just need to place userChrome.css inside the css folder, then rename it to leptonChrome.css. After that, create a new userChrome.css file and type @import url("css/leptonChrome.css");, then place it outside the css folder. For userContent.css, just repeat the same steps.

If you want a much easier step, just download the latest Lepton release here and just copy these items:

  • css folder (which contains leptonChrome.css and leptonContent.css)
  • userChrome.css
  • userContent.css
  • user.js

P.S. For user.js, you just need to copy the prefs and integrate it with Waterfox (at least the default ones, the non-default ones have // or /* */ on them).

@K4sum1
Copy link
Author

K4sum1 commented Sep 6, 2022

ScreenShot_20220906142354
Works for me, but I'd like to see others have success before closing.

@MrAlex94
Copy link
Collaborator

MrAlex94 commented Sep 16, 2022

@onemen,

We've now reworked the way our custom CSS is loaded in 864a210.

Some API notes:

   * A user sheet loaded via this API will come before userContent.css and
   * userChrome.css in the cascade (so the rules in it will have lower
   * precedence than rules in those sheets).

I'm hoping this means that TabMixPlus will work without having to disable Lepton.

@MrAlex94 MrAlex94 closed this as completed Oct 5, 2022
@onemen
Copy link
Contributor

onemen commented Oct 5, 2022

@MrAlex94,

So far with G5, Multi-row tabs does not work properly

Changing userChrome.theme.enable to false seems to fix this issue.

How do i need to load Tab Mix Plus style-sheets in order to avoid this issue. keep in mind that the solution need to be compatible with Firefox.

@onemen
Copy link
Contributor

onemen commented Oct 5, 2022

@MrAlex94,

The issue is in the file userChrome.css:

/** Tab UI ****************************************************************/
/*= Tab - Connect to window ==============================================*/
@supports -moz-bool-pref("userChrome.tab.connect_to_window") {
...
  #TabsToolbar {
    overflow: hidden;
    /* Prevent toolbar area over */
  }
...
}

The rule overflow: hidden caused the issue, I can fix it by adding this to Tab Mix Plus styles

#TabsToolbar[multibar] {
  overflow: unset !important;
}

@black7375
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants