Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode for Lepton #355

Merged
merged 36 commits into from
May 4, 2019
Merged

Dark mode for Lepton #355

merged 36 commits into from
May 4, 2019

Conversation

hackjutsu
Copy link
Owner

@hackjutsu hackjutsu commented May 4, 2019

The implementation is based on @DNLHC 's theme manager. #206

Add a new config field theme in ~/.leptonrc. Two supported values, "light" and "dark". "light" is the default value.

{
  "theme": "dark"
}

Screen Shot 2019-05-03 at 10 55 41 PM

Screen Shot 2019-05-03 at 10 58 31 PM

Screen Shot 2019-05-03 at 10 59 49 PM

Screen Shot 2019-05-03 at 11 00 53 PM

Screen Shot 2019-05-03 at 11 03 35 PM

hackjutsu and others added 30 commits April 28, 2019 19:22
This simplifies the color tuning between light mode and dark mode.
@hackjutsu hackjutsu self-assigned this May 4, 2019
@hackjutsu hackjutsu added this to the 1.7.x milestone May 4, 2019
@hackjutsu hackjutsu merged commit b56c7c3 into master May 4, 2019
@hackjutsu hackjutsu modified the milestones: 1.7.x, 1.8.0 May 5, 2019
@WrongGuy
Copy link

WrongGuy commented May 7, 2019

I'm a new user, I placed the file
C:\Users\NAME\AppData\Local\Programs\Lepton\ .leptonrc
I changed the code inside this file to

{
"theme": "dark"
}

But when I start Lepton, the dark mode doesn't appear to take effect. I'm using 1.8.0
Can you please guide me what to do further? Am I missing something?

@hackjutsu
Copy link
Owner Author

hackjutsu commented May 7, 2019

Hi @WrongGuy , you might want to put this file in your home directory. https://gist.github.com/hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b

C:\Users\<CurrentUserName>\.leptonrc

@zlyin
Copy link

zlyin commented Jun 4, 2019

Hi there, I downloaded the .leptonrc file and put it in Linux Home directory. When I change the theme and default_private keyword, it doesn't make a difference. How should I activate those new features?

@zlyin
Copy link

zlyin commented Jun 4, 2019

@hackjutsu Also, I set the default indent as 4, but when I hit tab, it seems only give 2, how to fix it?

@hackjutsu
Copy link
Owner Author

@zlyin Would you mind creating a new issue? Thanks.

@imHowie
Copy link

imHowie commented Aug 6, 2019

我是Mac OS的用户,我看到你并没有说明Mac如何切换至Dark主题,经过查找,发现你在Template for .leptonrc(https://gist.github.com/hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b)只说明来Liunx和windows上的教程,并没有Mac OS

@imHowie
Copy link

imHowie commented Aug 6, 2019

I am a Mac OS user, I saw that you did not explain how the Mac switched to the Dark theme. After searching, you found that you are only in the Template for .leptonrc (https://gist.github.com/hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b) to Liunx.
And tutorials on windows, and no Mac OS

@takeTrace
Copy link

I am a Mac OS user, I saw that you did not explain how the Mac switched to the Dark theme. After searching, you found that you are only in the Template for .leptonrc (gist.github.com/hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b) to Liunx.
And tutorials on windows, and no Mac OS

you can refrence linux setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants