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

Sunset Theme is broken #569

Closed
drfreund opened this issue Oct 8, 2021 · 4 comments
Closed

Sunset Theme is broken #569

drfreund opened this issue Oct 8, 2021 · 4 comments
Labels

Comments

@drfreund
Copy link

drfreund commented Oct 8, 2021

The Sunset theme does not work anymore. If you select it in options dialog and reload/save, nothing happens. After a restart of dnGrep, the Light theme is used instead. There are no error logs written, which could help.

dnGrep-Version: 2.9.400.0
My system: Windows 10 Pro, Build 19043, x64

@doug24
Copy link
Contributor

doug24 commented Oct 8, 2021

The Sunset theme is an external file, and my guess is that it got corrupted somehow. It was last updated about 4 months ago and it is working on two different computers that I tried.

The Sunset.xaml theme file is located at C:\Users\your username\AppData\Roaming\dnGREP

The original source file is https://github.com/dnGrep/dnGrep/blob/master/dnGREP.WPF/Themes/Sunset.xaml

Can you try replacing your copy of Sunset.xaml with the one linked above? From the linked page, click the Raw button and copy - paste the whole file into your copy of Sunset.xaml.

@drfreund
Copy link
Author

drfreund commented Oct 8, 2021

Can you try replacing your copy of Sunset.xaml with the one linked above?
That's exactly what I tried earlier ;-). My Sunset.xaml is identical to that under https://github.com/dnGrep/dnGrep/blob/master/dnGREP.WPF/Themes/Sunset.xaml. But the directory ..\AppData\Roaming\dnGREP does NOT exist on my harddrive. My Sunset.xaml is in the dnGrep installation path under "Themes" (c:\Applications\Tools\dnGrep\Themes\Sunset.xaml). That seems to be the right location, because if I rename the Sunset.xaml, I can see it in the dropdown list of the themes combobox with the new name.

@doug24
Copy link
Contributor

doug24 commented Oct 8, 2021

OK, yes, there is a bug loading themes when running in dnGrep 'portable' mode when the application is in a writable directory outside of Program Files. It's reading the theme file names from the correct location, but tries to load them from the appdata location.

@doug24 doug24 added the bug label Oct 8, 2021
@doug24
Copy link
Contributor

doug24 commented Oct 31, 2021

Fixed in Released in 2.9.428

@doug24 doug24 closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants