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 theme config is not working if keep app name as notepad2 and notepad2 dark theme.ini #915

Closed
elfsimulate opened this issue Nov 16, 2024 · 3 comments

Comments

@elfsimulate
Copy link

since the app name was changed to notepad4,i still keep it's name as notepad2 (notepad2.exe notepad2.ini notepad2 dark theme.ini). when i done, applying dark theme is not working,lunless change the config file name to 'notepad4 dark theme.ini'.
Is this a bug, or does the file name have to remain as notepad4 without any changes?

@zufuliu
Copy link
Owner

zufuliu commented Nov 16, 2024

i still keep it's name as notepad2

You can use mklink command to make Notepad2.exe symbolic from Notepad4.exe.
mkink Notepad2.exe Notepad4.exe

see https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

@zufuliu
Copy link
Owner

zufuliu commented Nov 17, 2024

unless change the config file name to 'notepad4 dark theme.ini'

The name is hard-coded,

notepad4/src/Styles.cpp

Lines 617 to 619 in e53e433

static inline void FindDarkThemeFile() noexcept {
FindExtraIniFile(darkStyleThemeFilePath, L"Notepad4 DarkTheme.ini", L"DarkTheme.ini");
}

by you can change the path for dark theme ini file:

[Notepad4]
;Notepad4.ini=%LOCALAPPDATA%\Notepad4\Notepad4.ini
;DarkTheme.ini=%LOCALAPPDATA%\Notepad4\Notepad4 DarkTheme.ini
[Settings]

e.g. DarkTheme.ini=Notepad2 DarkTheme.ini (note remove leading semicolon)

@elfsimulate
Copy link
Author

fine,thanks

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

No branches or pull requests

2 participants