Firefox readability in KDE Plasma theme

Firefox readability in KDE Plasma theme

I’ve started using KDE Plasma Workspace in Cent OS 7 a few weeks ago, and I love every bit of it. Except when it comes to its theme ruining firefox’s readability. The worst case scenario I had is when I’m on Google Developers site it turned both background and text into dark grey! A

fter I tried addons and making sure that “Apply colors to non-KDE4 applications” is unchecked in my settings which doesn’t fix the issue., here’s the solution that worked for me. Note that it came from multiple sites that are lost to me now.

  1. Open a new tab in firefox and go to about:support
  2. Find “Profile directory” and click on “Open directory”
  3. Create a new folder in it called “chrome“, note that it is case-sensitive
  4. Create a new file called “userContent.css“, again, it is case-sensitve
  5. Paste the following text in the file:
    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: #eeeeee;
    color: black;
    -moz-appearance: none !important;
    }
    body {
    background-color: white;
    color: black;
    display: block;
    margin: 8px;
    -moz-appearance: none !important;

    }

  6. Restart firefox.

 

Note that creating your own userContent.css is not recommended by several users I found online, but so far I have not notice any problems doing this so let’s hope that’s the end of it!

Leave a Reply

Your email address will not be published. Required fields are marked *