Comments (17)
Looks like it's only a Firefox thing? https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/theme
I can see about adding that functionality, though
from contextsearch-web-ext.
Hi,
if I understand correctly, in my opinion it can be useful if it is an advanced option to select. I have resist fingerprinting enabled in Firefox and this option interferes with the extensions theme. I remember for example this post:
violentmonkey/violentmonkey#1515
from contextsearch-web-ext.
That's right, the example you mentioned is exactly what I meant.
Note: my proposal concerns both the popup menu and the extension settings.
from contextsearch-web-ext.
I'm looking into it. I'm not having much luck on chrome so far, but this might be more OS related than browser.
What browser are you using and are you ok to do some testing with development code or betas?
from contextsearch-web-ext.
I use Edge stable in Windows 11 22H2.
Regarding CS I already use the git development version, every now and then I do a git pull
to update everything, and I load it as an unzipped extension. I can do some tests, even if I know little about JS.
Is there a function to read the system log in JS? I know it's a crude idea, but on Windows, just read SystemUsesLightTheme
in the registry to tell if you are in dark mode.
from contextsearch-web-ext.
Regarding CS I already use the git development version, every now and then I do a git pull to update everything, and I load it as an unzipped extension. I can do some tests, even if I know little about JS.
Both the Master and Development branch have the following added settings:
autoTheme:false,
autoThemeLite:"modern",
autoThemeDark:"modern dark"
You can change them via CS Settings -> Advanced -> Manual Edit
Setting autoTheme: true
will cause all menus and settings page to change between the Lite and Dark themes as set above, based on the OS dark setting. I've tested in Firefox with good results, and Chromium with bad results.
Alternative theme names are:
lite
dark
modern
modern dark
modern purple
modern sunset
modern glass
from contextsearch-web-ext.
Tested the development on Firefox and everything works as expected by changing themes on the browser (auto, light, dark) and enabling the 'autoTheme' feature whith default settings:
- autoThemeDark:"modern dark",
- autoThemeLite:"modern",
Note: if precisely privacy.resistFingerprinting=true (firefox theme: 'Dark'), in this case and always as expected only the theme of the popup menu changes while the theme of the extension (settings page) remains 'Light' (after reloading) even if I set the values in 'autoThemeLite'.
But I'm not sure if the cause is only the above option (now disabled) because I get the same result if I enable 'Light' theme in Firefox by setting in CS:
- autoThemeDark": "modern dark", or "dark",
- autoThemeLite": "modern dark", or "dark",
In summary everything ok! Thanks
from contextsearch-web-ext.
Both the Master and Development branch have the following added settings:
@ssborbis
I tried it in chrome, it works automatically, but I think it made the icons of qm larger than before.
from contextsearch-web-ext.
for me everything works correctly, I use a personal css style so I don't see any variations in the size of the buttons
from contextsearch-web-ext.
for me everything works correctly, I use a personal css style so I don't see any variations in the size of the buttons
What's the code, please? And, is it auto theme?? I tried this above code, but it's not working, when I turn the dark mode on, it's still in light mode.
from contextsearch-web-ext.
I tried it in chrome, it works automatically, but I think it made the icons of qm larger than before
hmm... not sure why this would be. Do you have a screenshot?
from contextsearch-web-ext.
hmm... not sure why this would be. Do you have a screenshot?
It's not obvious, but you can compare the icons to the tools line. The tools are not smaller, they are the same.
This is the original one: https://imgur.com/NZCm3KB
This is the new one: https://imgur.com/uVJgqNl
from contextsearch-web-ext.
Unless there's something else going on, i think the issue you're seeing is due to mismatched themes for autoThemeLite
and autoThemeDark
Those themes are 'lite' and 'modern'. The light /dark combos that would give better results, i.e. consistent icon sizes, would be:
lite + dark
or
modern + modern dark
from contextsearch-web-ext.
lite + dark
@ssborbis Yes, this works fine. Will be added to main version soon?
from contextsearch-web-ext.
1.47.9 going up with a UI to change themes under CS Options -> General
from contextsearch-web-ext.
1.47.9 going up with a UI to change themes under CS Options -> General
Thanks for help, it works. But, the settings page is always dark, is this normal? I can't even find the toggle that was on the up right corner.
from contextsearch-web-ext.
But, the settings page is always dark, is this normal?
It should change with your OS or browser lite / dark mode, same as the menus. It may not be working on Chrome. I'll look into it.
from contextsearch-web-ext.
Related Issues (20)
- performance problem HOT 7
- Quick menu and mouse middle button trigger HOT 44
- [Feature-Request] Toolbar-Menu Closing-Behaviour HOT 24
- [Feature-Request] Auto-Highlight Search-Term in Toolbar-Menu HOT 3
- How to modify {url} with REGEX HOT 9
- Issues with first search engine within a folder in quickmenu HOT 4
- Feature "prevent page clicks when toolbar menu is open" in 1.46.6 does not work properly at all. HOT 2
- 导入别人的配置,右键菜单中不显示图标~ HOT 3
- Issues about the text box of the toolbar of ContextSearch HOT 2
- Issue in the {searchTerms} HOT 3
- open Quick menu only when mouse is above selection HOT 7
- Extract substring after stop word HOT 9
- Not a Bug! Alternative but as a app for Windows HOT 2
- Extension has been removed from addons.mozilla HOT 3
- Clicking Context Search icon in overflow toolbar no longer works HOT 8
- Confusion in page search settings
- Qm is not working in Reddit new anonymous page HOT 10
- Multisearch with a single template URL HOT 26
- middle click to open menu HOT 6
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 contextsearch-web-ext.