Themes no longer work in v7.5.8



  • Hi,

    I’ve recently got a new computer (Win 10 64bit) at work and was busily setting things up. I’ve installed Notepad++ and tried both the 32bit and 64bit versions.

    I used a “Visual Studio 2015 Dark Theme” that I found online and that worked great on my old machine where it was applied before my old machine upgraded to v7.5.8.

    On the new machine when I do Settings >> Import >> Import Style Theme(s)… and select the XML style file it doesn’t error but neither does it apply the style so I’m stuck with an eye searing white-ness.

    Anybody have this issue and worked around it? Or is this a regression introduced by the newer version?



  • @Peter-Row

    Well to solve your immediate problem and prevent impending blindness, you could maybe try (temporarily) choosing one of the supplied themes…e.g. Black board …and report back how that goes…

    Maybe you are overreacting with your “Themes no longer work…” nay-saying. Something may not be working for you, but for me and I suspect the rest of us, themes work just great.



  • @Scott Sumner - oh look an overly aggressive it’s working for me thus there cannot possible be a problem for any one response. However helpful.

    In Settings >> Style Configurator… the Select theme drop down only has 1 option in it “Default (stylers.xml)” so there is no temporary option.

    So maybe I’m not “overreacting” as you put it.

    Perhaps if there is a non-aggressive person in this community that has any advice on what the issue might be and how to resolve that would be much appreciated.

    To add some further info that might help someone point me in to a resolution. As indicated this is on my new work machine, so it’s joined to a domain. On my old work machine when Notepad++ was first installed my account had admin access so I just needed to press OK on the UAC prompt when installing. However due to toughening up measures, my account no longer has admin, instead I have a separate admin account so on the UAC prompt I have to enter username/password. So perhaps there is some issue there with regards to installation?

    I mention the above because there’s already an issue I came across on my old machine when switching to that account set-up. That is if I have a file open that’s in a protected area and so Notepad++ prompts for elevated permissions when I try to save, after entering admin details at UAC prompt, Notepad++ reopens as admin but the file is no longer open, presumably because it’s effectively running as a different user. Before the accounts change when I just had to press OK at the UAC prompt it worked you might expected after the permissions elevation.



  • @Peter-Row

    You didn’t provide the important infos concerning your special installation scenario. Only after one knows that fact your bug report seems to be relevant. Please stay calm and don’t overreact to other peoples comments.

    To your problem:

    The Notepad++ installer stores the themes files in the user profile under

    C:\Users\<UserName>\AppData\Roaming\Notepad++\themes

    I bet you even don’t have the folder

    C:\Users\<UserName>\AppData\Roaming\Notepad++

    in the profile folder of your working user because you installed under an other user account (the one with admin rights). Instead you should have that folder in the profile folder of the admin user.

    You could try to copy over the Notepad++ folder from the profile of the admin user to the profile folder of your working user.



  • I’ll try following your advice dinkumoil. I may not have provided all the details initially but you have to admit the response I got was aggressive, dismissive and victim blaming.

    On the plus side it does seem like a bug in the operation of Notepad++



  • @Peter-Row said:

    …it does seem like a bug in the operation of Notepad++

    What kind of bug do you mean?



  • Why does the installer put the default theme files it comes with in the users profile who installs it?

    Surely it should put them in the same places as Notepad++ itself. The only thing that should be in the user profile folder is the choice not the theme itself. If the user imports a new theme, then fair enough put it in there profile.

    The other issue is the elevated permissions thing I mentioned in previous response.

    Basically anybody in a business domain environment like mine where things get looked down so that you have a standard user account to use and an admin user account to use is going to run into these same 2 problems every single time. It seems like with a few (small?) changes both these issues could be resolved without affecting either use case.



  • @Peter-Row said:

    Why does the installer put the default theme files it comes with in the users profile who installs it?
    Surely it should put them in the same places as Notepad++ itself.

    This would be a bad idea because themes are intended to be changed by Notepad++ users. If the theme files would be stored in the installation folder of Notepad++ this wouldn’t be possible because this folder is write protected for normal Windows users. Furthermore it wouldn’t be possible to have user specific themes.


    @Peter-Row said:

    If the user imports a new theme, then fair enough put it in there profile.

    Did you already follow my advice to copy the Notepad++ folder from one user profile to the other? Maybe the absence of this folder prevented Notepad++ from importing your theme. If this is the case it could be considered as a bug that Notepad++ silently does nothing instead of showing an appropriate error message.


    @Peter-Row said:

    The other issue is the elevated permissions thing I mentioned in previous response.

    If you run an installer under a certain user account you can not expect that the installer magically knows that you actually want to install under an other account. It works like it should.



  • @Peter-Row

    Addendum: To overcome your problem you could use a portable installation of Notepad++ that you can put to an arbitrary folder on your hard disk.



  • @Peter-Row

    Forget my point concerning the “elevated permisson thing”. I missed what you meant. I guess you meant this:

    @Peter-Row said:

    …if I have a file open that’s in a protected area and so Notepad++ prompts for elevated permissions when I try to save, after entering admin details at UAC prompt, Notepad++ reopens as admin but the file is no longer open, presumably because it’s effectively running as a different user.

    It’s like you presumed, the problem is the two different user accounts you use to work with Notepad++. To load the file you had open before the restart of Notepad++ with admin rights it has to be remembered somewhere which file to load. The only reliable place for that is the user profile under which you run Notepad++. But after the restart it has changed in your case, so no wonder that it doesn’t get loaded.



  • @dinkumoil said:

    To overcome your problem you could use a portable installation of Notepad++ that you can put to an arbitrary folder on your hard disk.

    +1. This would have been my next (overly-aggressive) suggestion had not @dinkumoil gotten there first. :-)



  • Hi, @peter-row, @scott-sumner, @dinkumoil and All,

    Personally, I know Scott and read his posts, on N++ community, for years, and presently, we e-mail, both, about a promising Python script and I’m totally sure that he did not intend to be hurtful at all, towards you !

    As for me, I “follow” Notepad from the v4.9.2 version and, except for this very first version, I’ve always installed portable versions of N++ ( so, without the installer ) and, presently, I even have several versions of N++ on my laptop, without any problem, using them, one at a time , principally for testing !

    A second advantage, to my mind, to install portable ( local ) configuration, in any folder you like, is that all files created by Notepad++, remain in that specific folder and its sub-folders ! Quite easy to manage ! In addition, problems of permissions/rights are not so frequent if you chose an installation folder in your user area :-))

    To end with, I agree with Scott, when he said :

    Something may not be working for you, but for me and I suspect the rest of us, themes work just great.

    You would be astonished of the lot of N++ problems, related by users, on our site, which I’ve, personally, never experimented, up to now ;-))

    Best Regards,

    guy038



  • @Scott Summer - you may not have meant to come across that way but you did. The fact that people that have known you for a long time or have read a lot of your posts know intrinsically what you meant doesn’t mean that some one new to the forum magically knows that. Something that you @dinkumoil and @guy038 should take onboard rather than simply reply with an it’s-you post.

    @guy038 - so basically you are agreeing with my comments above about the bugs? Saying just install it with the portable option instead of the other option that the installer explicitly gives you is not valid. It’s like saying to some one with a faulty sun roof on their brand new car that leaks when it rains, no it’s fine, just don’t drive in the rain.



  • If you have a bug report or feature request, this FAQ explains where to post such reports or requests.

    In this forum, we try to help people with their problems. Sometimes, helping involves giving workarounds. There is no guarantee, even if you submit the bug report, that it will be implemented any time soon (if at all). So these workarounds can help you in the mean time.

    When you buy a $40,000 car, and it leaks the first time it rains after you buy it, you can expect that the dealer will do warranty work. When you download a $0 piece of software, and ask for help in a help forum, you can expect that the fellow users who populate the forum will do their best to help you; that help involves diagnosing the problem, confirming whether or not the problem is truly a bug, giving advice on where bug reports can be filed, and giving potential workarounds for you to use while waiting on a potential bug fix – not every helper will always provide every bit of those possible helps. Sometimes, the workaround is all the original poster wants, sometimes the bug fix is all he will accept; members of this forum have no way of knowing which you are.

    Also, I’m not sure you’ve convinced us it’s a bug; the program works differently than you would expect, but that doesn’t make it a bug. Some people like the feature of being able to install themes in the %AppData%\Notepad++ hierarchy – those people include people whose IT departments have installed NPP, but don’t give them access to write in the program files directory… thus, if they got a spifty new theme they want to install, instead of being forced to drag IT over to install their theme in the program directory, they can just put the theme (which is a configuration file, for all intents and purposes) in the writeable configuration directory in the standard windows location for writeable configuration files.



  • Thanks - I’ve raised 2 feature suggestions, both of which would be big UX improvements for me now that I have to use a standard account and an admin account.

    I guess I should have mentioned that my standard user account cannot import a custom theme. It silently does nothing.

    Also I’m not advocating that it should work one way or the other regarding where the themes go - it should cope with both. i.e. default themes should be available to all and not just be in the profile of the installing user when installed in non-portable mode. Any how check out the 2 tasks raised on the GitHub task list 24/09 by me between 9-10 am GMT, if interested.

    Also anyone with the ability to do so - please reduce the 20 minute post delay. At the moment as a new user if you forget any details you have to wait 20 minutes to post again. If you’re working and posting then as is often the case you forget to come pack and add the detail till much later.


Log in to reply