AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1037517
Accepted
bueltge
bueltge
Asked: 2018-05-18 10:23:19 +0800 CST2018-05-18 10:23:19 +0800 CST 2018-05-18 10:23:19 +0800 CST

如何修复 Firefox 的深色主题问题 [重复]

  • 772
这个问题在这里已经有了答案:
如何在使用 Adwaita 深色主题(或任何其他深色主题)时修复 Firefox 中的不可见表单字段 [重复] (1 个答案)
4年前关闭。

自 Ubuntu 18.04 更新以来,我使用深色主题“Adwaita-dark”,并且在 Firefox 中有几个输入字段不可用。背景颜色与字体颜色较深,颜色相近。它不会被设置一个替代主题,就像这个 q/a中提到的 Adwaita 的轻主题。我寻找一种解决方案,让所有应用程序都保持黑暗主题。

如何修复主题以使用输入字段,查看字符串以输入正确的内容?

Google Drive 中的以下屏幕截图应说明左侧标题字段中的问题,就在“doc”图标的右侧。

在此处输入图像描述

gnome themes firefox
  • 1 1 个回答
  • 8014 Views

1 个回答

  • Voted
  1. Best Answer
    bueltge
    2018-05-18T10:29:15+08:002018-05-18T10:29:15+08:00

    我使用 Firefox 的自定义样式表为我修复它们。userContent.css在目录中留下一个带有名称的自定义样式~/.mozilla/firefox/<custom-key>.default/chrome/。您还应该添加目录chrome,重要的是小写。使用下面的 css 代码为不同的输入字段修复它们。结果如下图所示。

    在此处输入图像描述

    如果您找不到保留此样式表的文件夹,请阅读此答案。

    将以下源复制到自定义样式表文件userContent.css。

    input {
      border: 2px inset white;
      background-color: white;
      color: black;
      -moz-appearance: none !important;
    }
    
    textarea {
      border: 2px inset white;
      background-color: white;
      color: black;
      -moz-appearance: none !important;
    }
    
    select {
      border: 2px inset white;
      background-color: white;
      color: black;
      -moz-appearance: none !important;
    }
    
    input[type="radio"],
    input[type="checkbox"] {
      border: 2px inset white !important;
      background-color: white !important;
      color: ThreeDFace !important;
      -moz-appearance: none !important;
    }
    
    *|*::-moz-radio {
      background-color: white;
      -moz-appearance: none !important;
    }
    
    button,
    input[type="reset"],
    input[type="button"],
    input[type="submit"] {
      border: 2px outset white;
      background-color: #eee;
      color: black;
      -moz-appearance: none !important;
    }
    
    body {
      background-color: white;
      color: black;
      display: block;
      margin: 8px;
      -moz-appearance: none !important;
    }
    

    如果您在单选按钮或复选框上遇到任何问题,添加此 CSS 文件后,只需删除 -moz-appearance: none !important

    • 13

相关问题

  • Firefox 的 Ubuntu Firefox 修改扩展有什么作用?

  • 如何更改 GDM 中的登录屏幕主题?

  • 是否有适用于 IMAP 邮件帐户的 Gnome 小程序?

  • 如何获取和安装更多主题、图标和指针?

  • 如果顶部面板中缺少会话小程序,如何注销?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve