GithubHelp home page GithubHelp logo

Tab context menu related about uc.css.js HOT 17 CLOSED

henryxrl avatar henryxrl commented on May 11, 2024
Tab context menu related

from uc.css.js.

Comments (17)

aminomancer avatar aminomancer commented on May 11, 2024
  1. It doesn't detect whether the page is bookmarked. It's the same button no matter what. If the tab is already bookmarked then clicking it will open the edit dialog, because the edit dialog is functionally the same as the add bookmark dialog. Understand that the bookmark tab button and the reload tab button are already present in vanilla Firefox. This script just moves them to the top. The back/forward buttons are the only ones added by the script. And in vanilla Firefox, the bookmark tab button does not change depending on whether the tab is already bookmarked or not.
  2. I have no idea what that is. What operating system are you using?

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024
  1. I see. Thanks for the explanation.
  2. It seems like an extra padding. I'm using Windows 11.
    image

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

Which version of Firefox?

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024

Lastest Nightly, 96.0a1 (2021-11-06) (64-bit)

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

Also can you give me a full list of all the scripts you're using? You have all the stylesheets, right? You have the full resources folder and the chrome.manifest file?

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

Do you have browser.display.windows.non_native_menus set to 1 in about:config?

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024

Yes it's 1. I set everything according to your table

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

And no it's not extra padding. Otherwise you'd see a purple padding around it. It's blue which means it's margins on the arrowscrollbox. In the menupopup's #shadow-root.

I don't have Windows 11 and don't have any way to test this theme on Windows 11. Simply put it just isn't designed for Windows 11. If you can look through the inspector and tell me what you see, we can probably fix it. But I can't do it on my own. I think the shadow will be on the top level <menupopup> element. But the extra "padding" will be in its shadow root. Like under the <menupopup> there'll be a #shadow-root row. You expand that and there'll be an <arrowscrollbox> element. There should be margins on it... Like, that should show as a band of yellow bordering it. The margins will either be on the arrowscrollbox or on one of its descendants. Look around for it and when you find the yellow band, see if you can find the margin rule in the Rules tab.

Do the same with the shadow. There will probably be something like -moz-window-shadow: cliprounded so tell me if the problem is solved if you add -moz-window-shadow: none !important; and appearance: none !important; to userChrome.au.css.

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

Sorry I should have said add this to userChrome.au.css:

menupopup, panel {
    -moz-window-shadow: none !important;
    appearance: none !important;
}

And maybe try adding this to userChrome.au.css too:

menupopup::part(content),
menupopup::part(arrowscrollbox-scrollbox) {
    margin: 0 !important;
}

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024

The first part of the code doesn't fix the problem but the second part does! Thank you!!!

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

Oh I see the problem. You have userChrome.css.menupopup-shadows set to true don't you? That will create the extra padding. You should just set that to false.

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024

Ah yes! That should be the problem haha!

Btw, since you set the tabs spanning the entire width of the window, it becomes very hard to drag the window around. How do you personally do it?

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

There's a little drag space between the window control buttons and the tab toolbar buttons (new tab, all tabs, vertical tabs buttons).
image

When you enable the menu bar it gets a bit smaller but it's still there
image

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

I'd like to find some other way to allow window dragging though. I always have hundreds of tabs so they take up the full titlebar space regardless of the max tab size. So CSS wouldn't really change anything. But it might be possible to use javascript to allow window dragging on any element if a certain key is pressed. Like maybe if you hold down the alt key, dragging anything will drag the entire window. I'm not sure if that's possible but I'll look into it.

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024

Do you think simply leaving a small space to the left of the very first tab will do? The unmodded Firefox does have this.

image
image

from uc.css.js.

aminomancer avatar aminomancer commented on May 11, 2024

No I removed the space on purpose because I think it looks ugly. Try this script

from uc.css.js.

henryxrl avatar henryxrl commented on May 11, 2024

Wow this works nice! For me, holding shift and dragging windows triggers Microsoft's PowerToy FancyZones. I'd have to change the hotkey from alt+shift to ctrl+alt. Great work!

from uc.css.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.