No borders around buttons in dark themes

Please post all general support questions for LXDE here.
Locked
brazh
Posts: 2
Joined: Mon Aug 07, 2017 4:53 am

No borders around buttons in dark themes

Post by brazh »

Hi!

I have a problem with dark themes in Lubuntu 17.04. When I choose widget with dark colors (for example Elementary Dark), than in some applications I don't see borders around buttons, checkboxes and so on. Look at screenshots, where you can see problems in "LightDM GTK+ Greeter settings" window:

here I chose Lubuntu-default widget and everything is normal:
Image

and here I chose Elementary-Dark widget and there are no borders:
Image

The same thing happens even when I choose standard widget Lubuntu-dark-panel. Can you help me to make Lubuntu draw borders in dark themes?
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: No borders around buttons in dark themes

Post by drooly »

did you install Elementary-dark yourself?
looks like a minor gtk3 theme incompatibility problem.
brazh
Posts: 2
Joined: Mon Aug 07, 2017 4:53 am

Re: No borders around buttons in dark themes

Post by brazh »

did you install Elementary-dark yourself?
Yes, but the same problem is when I choose standard widget Lubuntu-dark-panel.
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: No borders around buttons in dark themes

Post by drooly »

But can you reproduce the behavior with certain themes?
meaning, some themes definitely have this problem, others definitely don't?
and could you please make sure it applies to gtk3 only, and not gtk2? (*)
a lot to ask for a newbie, I know, but you will get to know your system better...

(*) there's many ways to find that out, you can do some searches.
this script will give you a list of all applications in /usr/bin, and say which ones use gtk2 and which ones gtk3:

Code: Select all

#!/bin/bash
cd /usr/bin
echo -e "\ngtk2\n---"
for F in *; do 
    objdump -p $F 2> /dev/null | grep gtk-x11-2.0 > /dev/null
    if (( $? == 0 )); then echo -e "  $F"
    fi
done
echo -e "\n-------\n\ngtk3\n----"
for F in *; do
    objdump -p $F 2> /dev/null | grep gtk-3 > /dev/null
    if (( $? == 0 )); then echo -e "  $F"
    fi
done
echo -e "\n--------\n"
do you know how to use a bash script?
Lieven
Posts: 2
Joined: Tue Sep 12, 2017 9:07 am

Re: No borders around buttons in dark themes

Post by Lieven »

The problem is, lubuntu-dark-panel doesn't even draw borders in light colored themes.

I don't know why, but I think it might be related to the default 'raleigh' theme.
That theme also doesn't show some borders.

So I guess if you use a theme that doesn't specify additional settings for borders, the settings from the default 'raleigh' theme are used as a fallback, which would explain why lubuntu-dark-panel and elementary-dark don't show all borders.

The best thing to try is to select a theme with borders on the widget tab (Clearlooks or Lubuntu-default for example) and select the theme you actually want on the window border tab. That way you will have borders around buttons.

Of course you can also try to modify the theme (lubuntu-dark-panel or elementary-dark in your case) to include settings for borders, but that will obviously need some knowledge about how to change a theme.
Locked