Menu

#590 Using Librecad with a dark theme

Next release
open
nobody
None
3
2016-07-10
2016-07-09
No

Hi all,

I've installed a dark theme, but have problems with Librecad and it's black lines that appear on the dark background.

I've edited all .svg files in LibreCAD-2.1/librecad/res/icons(see attached screenshot and appended icons) I haven't been able to get the icon into the submenus though. Is there something extra necessary?

Iit would really be nice to have the Librecad theme switchable from inside the GUI - when using a projector, the dark theme doesn't come over well.

The attached icons may still need some minor tweaking, but the results are acceptable.

1 Attachments

Discussion

  • John Coppens

    John Coppens - 2016-07-09

    Screenshot of the dark theme

     
  • ravas

    ravas - 2016-07-09

    Some configurations (themes/styles/desktop environments)
    don't support the menu icons.

    What's your OS and desktop environment?

    Options -> Widget Options
    https://github.com/LibreCAD/LibreCAD/wiki/Style-Sheets

    You could use the Fusion style (Qt's cross-platform style),
    and write a dark 'theme' in the form of a style sheet.

     
  • ravas

    ravas - 2016-07-09

    Actually the problem could also be because you are using Qt4...

    Also note the Fusion style doesn't exist in Qt4.

     
  • John Coppens

    John Coppens - 2016-07-09

    My apologies. OS is Linux and I'm using the XFCE4 window manager (which still runs on gtk+2.0). I do have gtk3 installed (and am using it), but the LibreCAD icons never seem to change, independently from the theme selected.

    I suspect one of the problems is that Slackware64-current still uses Qt4 (4.8.7). I tried to compile Qt5 a couple of weeks ago, and ran into some problems. I'll have another go.

    Another problem is that gtk3.20.0 changed (once again) the interpretation of the CSS in the themes, and very few themes actually work correctly.

     
    • ravas

      ravas - 2016-07-09

      Note I was only referring to the missing icon issue.
      I don't think Qt has any built-in detection of 'dark themes',
      nor does LibreCAD.

      If you want to open a request for an option to choose an alternative dark theme icon set
      please post it at https://github.com/LibreCAD/LibreCAD/issues
      I want all significant changes to have an associated GitHub issue.

       

      Last edit: ravas 2016-07-09
  • ravas

    ravas - 2016-07-09

    I'm not sure if it works on Slackware,
    but Qt does a Linux installer.

    http://www.qt.io/download-open-source/#section-2

     

    Last edit: ravas 2016-07-09
  • John Coppens

    John Coppens - 2016-07-09

    I found out why Qt5 didn't compile (there was some issue with the PCRE library's .pc file, so I reinstalled it. I'm now compiling, and it seems to go well (though very slow - it has been compiling for about 3 hours :-)

    Is it possible that the small icon on the submenus are too small to show the fine details of the icons?

     
  • ravas

    ravas - 2016-07-10

    3 hours is inordinate.
    What is your CPU? How many cores?

     
  • ravas

    ravas - 2016-07-10

    The icons still show even when I use 800x600 resolution.
    I'm fairly sure the problem is with your theme / the style set in LibreCAD.
    Try different styles and different themes to be sure.

     
  • John Coppens

    John Coppens - 2016-07-10

    Still wrestling with Qt5.5.1 (which was the version of the latest Slackbuild script then. Now it has been upgraded for 5.6.1, so I'm trying with that one). There seems to be an undefined symbol in libnss3.

    I hadn't noticed that the Slackbuild script doesn't enable multi-core compilation. I enabled 4 cores (of 8, but I needed some spare power for other jobs). Weirdly it went on to use 100% (=8 cores) at some moments. Even so, it's around 3 hours.

    I'll try with different styles. The 800x600 you mention, is that the size of the LibreCAD window? That doesn't change the size of the icons, does it?

     
  • ravas

    ravas - 2016-07-10

    I thought you were talking about building LibreCAD.

    I meant that I've tested on 4k and 800x600 screen resolution. That's not the problem.

     

Log in to post a comment.