gtk themes ... that little dotted line on selected items..

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

gtk themes ... that little dotted line on selected items..

#1 Post by sc0ttman »

i'm no expert on gtk themes...

but how do I make the little 'selected' dotted line that appears around currently selected menu items, buttons, checkboxes etc more bold?

.. I'm trying to make a gtkdialog gui a bit easier on the eye when using only keyboard navigation (TAB to move around the GUI), but unless i move the cursor over certain elements, i only get the tiny dotted line to indicate which are current selected...

.. i think something similar has been done (even in akita, so i should know), but i cat find it... (i need it for gtkdialog anyway... )

.. Cheers..

EDIT: This is what I thought would work in the gtkrc my GUI is using... (It is what ROX uses to highlight using a semi-transparent rectangle in akita)...

Code: Select all

style "highlighter"
{
  engine "pixmap" 
  {
    image 
    {
        function        = FOCUS
		file    = "/root/puppy-reference/midi-icons/select.png"
		border  = { 6, 6, 6, 6 }
		stretch = TRUE
    }
  }
}

widget "*Collection*" style "highlighter"
EDIT2: I wanted to attach a screenshot, but the dotted line I am talking about doesnt show up in screengrabs... So... to see what i mean...

Open up any gtkdialog GUI with buttons or checkboxes, and press TAB a few times to highlight one of them .... You will (if your system is like mine) only see a tiny little dotted line, no real highlighting or anything ....

I REALLY wanna learn how to change the theme behaviour so full highlighting is given to TAB selected items, so they appear the same as when they are hlighted with the mouse (see screenshot):

Showing checkbox highlighted when the mouse cursor is hovering over it, and I tabbed onto it (so you see the dotted line as well):

Image

... How can I achieve the same orange highlight effect by simply TAB-bing onto it, not using the mouse at all?? In a dark theme, the dotted line is invisible, and in a default theme its almost invisible...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#2 Post by sc0ttman »

...bump... screenshot attached, if that helps to explain the problem...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#3 Post by 01micko »

Dunno if this is any help.
Puppy Linux Blog - contact me for access

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#4 Post by sc0ttman »

Thanks 01micko, I think that *maybe* this is what I will need:

"gtk-label-select-on-focus"

... But I'm stuck at work all day.. On a sunday no less... So I can't test it..

I assume the "gtk-label-select-on-focus" property can be added to gtkrc.mine or whatever, much like 'gtk_can_change_accels' is done in akita and other pups...

Is anyone able to test out "gtk-label-select-on-focus" and see if it forces full highlighting of checkboxes and so on, when using keyboard navigation only?

EDIT... Or, will "gtk-label-select-on-focus" simply force the checkboxes to be checked as soon as they are focused on?? (that's not what I'm after...)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#5 Post by sc0ttman »

Damn ... nope ... not what I was looking for... I either need to make the little dotted-line white (or bright), or I need another way of highlighting an item that has been TABBED into/onto ...

Suggestions, hacks, workarounds etc welcome...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply