晓仙玄
小狐狸
小狐狸
  • UID46339
  • 注册日期2014-06-12
  • 最后登录2025-06-30
  • 发帖数89
  • 经验116枚
  • 威望0点
  • 贡献值94点
  • 好评度9点
  • 社区居民
  • 忠实会员
阅读:84回复:0

强制右键菜单深色或浅色

楼主#
更多 发布于:2025-06-18 02:22
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/menupopup_forced_color_schemes.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
 
/* This only works on Windows10 when the proton-style context menus are used.
 * Purpose of this style is to force either dark or light version of menus
 * regardless of the Firefox theme you have.
 * This does NOTHING unless you go to about:config and create a new number pref
 * "userchrome.menupopups.color-scheme"
 *
 * 0 = dark
 * 1 = light
 */
 
@media -moz-pref("userchrome.menupopups.color-scheme",0){
  menupopup{
    color-scheme: dark !important;
  }
}
@media -moz-pref("userchrome.menupopups.color-scheme",1){
  menupopup{
    color-scheme: light !important;
  }
}

原链接:menupopup_forced_color_schemes.css
有要求的请注意,/* This only works on Windows10 when the proton-style context menus are used.
 * Purpose of this style is to force either dark or light version of menus
 * regardless of the Firefox theme you have.
 * This does NOTHING unless you go to about:config and create a new number pref
 * "userchrome.menupopups.color-scheme"
 *
 * 0 = dark
 * 1 = light
 */
游客

返回顶部