Inkscape.org
Beyond the Basics How can I add new themes in 1.0beta1 on Windows?
  1. #1
    andrej88 andrej88 @andrej88

    I'm trying out the 1.0 beta and unofruntately the new UI leaves a bit to be desired on my 1366×768 screen. Namely, the Adwaita theme has quite large toolbar buttons (even when I select the "smaller" option in the preferences), while the more compact win32 theme has some visual bugs here and there. I was hoping I could install custom GTK themes but the release notes (here) are a bit vague and I could find very little information online regarding custom themes in Inkscape, let alone for Windows.

    I've download a GTK3 theme from gnome-look.org, but I have no idea what to do with it... I've tried blindly placing the downloaded tar.xz file into `/etc/gtk-3.0` as it seemed the most likely place, but that didn't make it show up in the theme dropdown, and I'm not sure what else I can do that makes sense... I also couldn't find anything on the subject in the online manual. Could anyone help me out?

  2. #2
    Maren Hachmann Maren Hachmann @Moini

    I'd like to know that, too. I'll ping the Windows main developer in the chat - he hasn't been online lately, though, so might take a while. If you find it out, let us know here.

  3. #3
    brynn brynn @brynn

    Yes, I was just asking about that too.  I hope they remove that win32 option before they release 1.0.  It really is not up to Inkscape usual quality.

  4. #4
    Patrick Storz Patrick Storz @Ede_123

    Using themes on Windows should work the same way as using themes on Linux. The "system-wide" location is "share/themes".

    The "win32" theme is a "native" theme, that ships with gtk3. I'm not even sure whether it could be removed if we wanted to. Some of the visual issues should be fixed upstream (personally I neither have time nor motivation to look into theming myself, though). Unfortunately most of the issues are the result of Inkscape developers not considering theming when creating Inkscape-specific styles in Inkscape's "style.css".

  5. #5
    Maren Hachmann Maren Hachmann @Moini

    Patrick, where exactly is 'share/themes'? In the Inkscape directory? Or in some GTK directory? Or in %APPDATA% ? Or ... ? I will probably need to explain this a couple times, would be good to know.

    Resetting style.css would be a hack, but it would be possible, by emptying the file, right?

  6. #6
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof

    Yes @Moini

  7. #7
    Maren Hachmann Maren Hachmann @Moini

    @brynn Do you want to try that out, the hack, I mean? So we know if it works?

  8. #8
    andrej88 andrej88 @andrej88

    Thank you @Ede_123 for the help, this set me in the right direction and I have managed to get the theme working in Inkscape!

    There were no "share/themes" folders on my computer, but there was a "share" folder in the Inkscape 1.0 install directory, so I created a new folder there called "themes". My final folder structure looks like this:

    "\Inkscape 1.0beta1\share\themes\(theme name)\gtk-3.0\"

    Inside of that are gtk.css, gtk-dark.css, /assets/, etc.

    That gtk-3.0 folder seems redudnant, but the theme I downloaded came with a gtk-3.0 folder along with gtk-2.0, cinnamon, gnome-shell, xfwm4, and some other non-GTK3-looking stuff, and I didn't dare mess with the existing folder structure. I only copied over the gtk-3.0 folder.

    Thank you everyone for your help!

    Inkscape Gtk3
  9. #9
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof

    Could you @andrej88 go to preferences ans see in system where is your themes folder, and is is woking also in this place? Thanks in advance.

  10. #10
    Maren Hachmann Maren Hachmann @Moini

    (It's called 'User themes' in Edit > Preferences > System - can you move your theme to that folder, for testing, please @andrej88 ? It might not exist yet. It would be good if themes could be kept in a folder outside the installation directory, because else they may be lost on uninstallation or update).

  11. #11
    andrej88 andrej88 @andrej88
    *

    @jabiertxof It works there too. Same folder structure (themes/theme name/gtk-3.0). The folder is "AppData\Local\themes", nothing Inkscape or gtk related, no wonder I had missed it. I presume this is the preferred place to install themes?

    I didn't know about that preferences tab that shows the various user settings directories either, that will come in handy in the future. Thanks!

    EDIT: Just saw your comment @Moini, that answers my question.

  12. #12
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof

    thanks @andrej88 is the user wide place. also on final release you need admin right to install in apps folder so maybe is beter use this user wide place.

  13. #13
    Maren Hachmann Maren Hachmann @Moini

    @andrej88 Thank you for the complete path info, this will be useful - I'll add it to the release notes.

  14. #14
    brynn brynn @brynn
    *
    Ede_123

    The "win32" theme is a "native" theme, that ships with gtk3. I'm not even sure whether it could be removed if we wanted to.

    What about just removing the win32 option from the dropdown menu in Preferences > Interface > Theme ??  I realize it would not remove it from Inkscape, but at least users would not see it.  And I don't think we want users to see that.

    Moini

    Do you want to try that out, the hack, I mean? So we know if it works?

    Sure, I'd be glad to test.  But I need further instructions for what

    Moini

    Resetting style.css

    means.  Is deleting the file the same thing as emptying it?  I assume emptying is means deleting everything out of it. 

    Plus any other instructions.  I assume I need to go to the site you referenced in the chat, to choose a theme.  And to do that, I need some way to preview what the theme will look like in Inkscape, besides installing one after the other until I eventually find one that I like.

    Then put it in the AppData folder, it sounds like?

    If I can get a theme, maybe I will be able to help in testing after all.

  15. #15
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof
    *

    I just commit to master a copy to folder into the themes page, think is now more accesible: (now trying to make the new widget smaller)
     

    Screenshot From 2019 10 10 12 06 58
  16. #16
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof

    Now I go to try to make style.css not force any theme based styling, leaving it for custom widgets using theme colors and with clases.

  17. #17
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof
    *

    I just make this issue for etherpad collaborative work on style.css to make as less as harcoded possible.
    https://gitlab.com/inkscape/inkscape/issues/461

     

  18. #18
    Maren Hachmann Maren Hachmann @Moini
    *

    @brynn   looks as if the hack might not be needed, in the long term. But in case you still want to try it:

    - navigate to the folder where you put the beta

    - open share/inkscape/ui/style.css , make a backup of the file, then delete everything in it.

    - close and open Inkscape, use win32 theme, check if it looks better.

  19. #19
    Jabiertxo Arraiza Cenoz Jabiertxo Arraiza Cenoz @jabiertxof

    Dont need this open inkscape go to preferences->system->user-ui folder open. Put in this folder a empty file named style.css. (remove to rollback)

  20. #20
    brynn brynn @brynn
    jabiertxof

    Dont need this open inkscape go to preferences->system->user-ui folder open. Put in this folder a empty file named style.css. (remove to rollback)

    Empty text file, right?

    Let's see....  Closing all Inkscape docs....  Using Notepad to make an empty file....  Making ui folder because there isn't one....  Paste....   Aaaandd opening 1.0 beta....

    No, there's no change with win32 theme.  It looks just the same.  Possibly after a system re-boot? 

    Oh, but I didn't install something new with your new commits.  It's the same 1.0 beta that I had before.  I'm not able to compile the source code.  So if the new commits are needed, I'll have to wait for a new Windows package to be available.

     

  21. #21
    brynn brynn @brynn

    Maybe try Maren's steps....

    Hhmm...  It seems I have the 7z package in my Downloads folder.  I never have put it into Program Files because....well, I'm lazy, and another version will be out soon enough.  I don't think that should matter, but if someone thinks it does, I can move it into Program Files, and try again.

    But anyway, finding the folder....copy.....delete....save....re-open 1.0 beta....

    No luck with that either.

    Thanks for everyone's hard work!

  22. #22
    Maren Hachmann Maren Hachmann @Moini

    New commits should not be needed, that's all I know ...

  23. #23
    brynn brynn @brynn

    Well, then whatever making empty style.css folder was supposed to do (make win32 theme look better???)  didn't do anything.

    Still need to know how to preview new themes before I can install in Windows 7

    @jabiertxof

    @Ede_123

    Thanks!

Inkscape Inkscape.org Inkscape Forum Beyond the Basics How can I add new themes in 1.0beta1 on Windows?