Comments (19)
You can go ahead.
from firefox-uwp-style.
Mica material is applied externally, Firefox does not call any of the apis that activate it or decide what theme to use. If you want to change it while it is open do it through MicaForEveryone.
from firefox-uwp-style.
Oh, yes you're right, I've missed that options (was set to Default). Switching that together with the Firefox theme works great!
Thank you.
Closing...
from firefox-uwp-style.
@Guerra24 I have to reopen this since there is an unfixed issue. When the theme changes and firefox is closed, the next reopening is still the previous Mica theme.
See this issue for more details: MicaForEveryone/MicaForEveryone#64
from firefox-uwp-style.
When the theme changes and firefox is closed, the next reopening is still the previous Mica theme.
2022-04-25_21-02-20.mp4
Works here. MFE's Firefox rule is set to System.
from firefox-uwp-style.
🤔 I already have the same rule but the issue persists...
from firefox-uwp-style.
@Guerra24 I can also reproduce the issue, however not in the order that you shown in the video, maybe do in this order instead:
- Open Firefox. Confirm that the correct theme (dark/light) is rendered.
- Close Firefox.
- Change the theme
- Reopen Firefox. Confirm that it renders the wrong theme.
In your video, you changed the theme before closing Firefox, which doesn't seem to trigger this bug.
EDIT: Reproducing video
Firefox-MFE-System.mp4
from firefox-uwp-style.
Well, that's acrylic... afaik it does not have theme-specific colors. Also since I'm running stable Win11 I have not tested any of the other backdrop types. Regardless, I tried and still works just fine.
explorer_2022-04-29_19-21-17.mp4
That aside this is something I can't fix from my side unfortunately.
from firefox-uwp-style.
The same happens with Mica actually (sorry for the horrible video btw). And also looks like we are running dev builds while you are running stable. I generally think this is a bug related to Firefox, since this behavior doesn't shown on any other apps, only Firefox.
Firefox-MFE-System32.mp4
.
from firefox-uwp-style.
Closing this since the issue is unfixable from my side.
from firefox-uwp-style.
I've found a workaround for this issue: I've written an AutoHotKey script that automatically triggers reload when theme has changed and Firefox window is active (or is opened):
https://github.com/maicol07/AHK-scripts/blob/main/FixFirefoxMFE.ahk
Feel free to improve the script if you want!
from firefox-uwp-style.
Just upgraded to 22621 and so far no issues on my side in both stable and nightly.
from firefox-uwp-style.
Strange, it still happens on my machine (25140). It looks like Firefox is automatically changing DWMWA_USE_IMMSERIVE_DARK_MODE
, because when I delay execution of DwmSetWindowAttribute
, everything works perfectly.
from firefox-uwp-style.
After some Google digging, this problem is most likely caused by Firefox.
https://bugzilla.mozilla.org/show_bug.cgi?id=1734359
https://hg.mozilla.org/integration/autoland/rev/b94153cca1f7
EDIT: The title bar bug happens even without MFE, or any other program messing with Firefox's immersive dark mode attributes. So, it's definitely a Firefox bug.
EDIT 2: Firefox uses a function within the LookAndFeel
class in order to determine whether it should use dark mode for the title bars. In the LookAndFeel.h
file, the function returns the value of a field. Haven't managed to find out where the field is set though, nor the source file of the LookAndFeel
class (commonly it would be LookAndFeel.cpp
, but the file is missing).
EDIT 3: Looks like this function is to blame: https://github.com/mozilla/gecko-dev/blob/master/widget/LookAndFeel.h#L391.
from firefox-uwp-style.
Btw are you all sure Titlebar color is set to System in MFE? I can replicate the issue when set to Default but with System it does work just fine.
2022-06-19_01-27-42.mp4
from firefox-uwp-style.
Btw are you all sure Titlebar color is set to System in MFE? I can replicate the issue when set to Default but with System it does work just fine.
Yes. And as I said before, it does not matter whether MFE is used or not. This is a bug within Firefox, not MFE or this theme.
from firefox-uwp-style.
Whether MFE works or not in this case is pretty much a hit or miss. Some systems have Firefox applying dark theme before MFE and doesn't cause this bug; while others have MFE applying dark theme first, leading to this bug.
from firefox-uwp-style.
On my system, Firefox takes like 3 seconds to initialize, while MFE only needs like 1 for applying the title bar color to Firefox. Yours looks pretty much instant.
from firefox-uwp-style.
Okay, so this is the issue. Firefox theme detection is somehow off by one and since it's a bug in Firefox it can be reported through bugzilla and it should be valid since the issue is visible when the titlebar is enabled. I can do it but I'm not sure when, if you want to do it just let me know otherwise some time next week I will.
from firefox-uwp-style.
Related Issues (20)
- Is there a way to use only part of the whole style (question) ? HOT 5
- 1. Icons are too small 2.Not adapting accent color HOT 1
- Top-Right button have some problem when I hover it HOT 2
- Mica For the Toolbar HOT 2
- Latest version does not inherit Windows accent color? HOT 2
- Broken theme on the last version of Firefox Nightly HOT 2
- how can i have acrylic on this menus? HOT 1
- Confirmation pop-up window is not in the center vertically in the latest Nightly.
- Broken toggle switches in the latest Nightly.. HOT 1
- Gmail scroll bar is black. HOT 1
- Broken in FF 112/113 HOT 6
- Sun Valley breaks style of autoscroll indicator (when middle click on page) HOT 2
- White bar at the bottom of Library HOT 3
- reduce bookmark padding HOT 5
- Wrong color HOT 1
- Question on "about:" pages and "Library" window tweaks HOT 11
- Extension icon does not inherit Windows accent color? HOT 2
- Radio buttons miss styled in about pages HOT 2
- Windows 10/11 Theme (question) HOT 2
- remove private-browsing-indicator label
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firefox-uwp-style.