Giter VIP home page Giter VIP logo

Comments (6)

coolfizzin avatar coolfizzin commented on May 18, 2024 2

Thank you Tusk devs so much for making such excellent dark themes for Evernote. I'm thrilled that somebody has finally done what Evernote has refused to do for its customers for years.

To join in this discussion: I am using Tusk on Windows and I have the same problem with the font color not changing regardless of the theme, so that it is too dark to read. As a temporary fix, I simply go into the Developer Tools, select the text area, and change the CSS for en-note:

en-note {
     color: #eeeeee;
     }

This change remains at least as long as Tusk is open, and it works great.

Thanks again!

from tusk.

jlee58tw avatar jlee58tw commented on May 18, 2024

Hi there,

As a software engineer, I really like to use editors with dark theme. So I am going to say what you did was really great. Solving the problem of having no way to customize the theme of Evernote.

While there is a problem about the font color in dark/black theme. After I check out the code, I think the problem can be solved with javascript injection. Then we can manipulate the CSS style within the iframe.

Here is the code I added in browser.js (see also: https://github.com/jlee58/tusk)

function setFontColor(color){
  //inject Javascript to set font color
    var content = 'var frame = document.getElementById("en-common-editor-iframe");\
      if (frame){\
      frame.contentWindow.document.getElementById("en-note").style.color = "' + color + '"\}';
    webFrame.executeJavaScript(content);
}

function darkMode() {
  document.documentElement.classList.toggle('dark-mode', config.get('darkMode'));
  config.get('darkMode')?setFontColor('#DDD'):setFontColor('#000');
}

After this changed, the Vibrant theme will not work properly. I have no idea what is going wrong, hoping you will fix it.

Thanks

from tusk.

whitmanschorn avatar whitmanschorn commented on May 18, 2024

@coolfizzin thank you, this is exactly what I was looking for.

I think we could at least allow for some user setting in addition to theme that sets a default text color on new notes?

from tusk.

klaudiosinani avatar klaudiosinani commented on May 18, 2024

Feature added on bfb835b : )

from tusk.

omerasif57 avatar omerasif57 commented on May 18, 2024

jedi

from tusk.

coolfizzin avatar coolfizzin commented on May 18, 2024

Thank you very much. It looks great!

from tusk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.