After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700498 - Set OLED label for non-custom shortcuts
Set OLED label for non-custom shortcuts
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Wacom
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Joaquim Rocha
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-17 07:45 UTC by Bastien Nocera
Modified: 2013-07-15 16:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Pass action name as OLED label (924 bytes, patch)
2013-05-17 18:47 UTC, Przemo Firszt
none Details | Review
Pass action name as OLED label, reset to blank on no action (1.75 KB, patch)
2013-05-19 00:19 UTC, Przemo Firszt
accepted-commit_now Details | Review
wacom: Show hard-coded action names on OLED too (1.83 KB, patch)
2013-07-15 16:39 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2013-05-17 07:45:49 UTC
For the help and switch monitor button actions, we should also set an OLED label.
Comment 1 Przemo Firszt 2013-05-17 18:47:06 UTC
Created attachment 244571 [details] [review]
Pass action name as OLED label
Comment 2 Przemo Firszt 2013-05-17 19:18:55 UTC
The patch works fine, but OLED capacity is very limited. Strings like: "Show On-Screen Help" barely fits, "Wyświetlenie pomocy ekranowej" (Polish) doesn't fit at all, the same for "Mostrar la ayuda en pantalla" (Spanish). I'm not sure what's the best way to fix it as it's a corner case - the text on the on-screen help looks fine. 

Maybe icons?
https://github.com/PrzemoF/i4oled/blob/master/icons/help.png
https://github.com/PrzemoF/i4oled/blob/master/icons/switch-monitor.png

And that's how they look on Intuos4:
http://firszt.eu/gnome-devel/help_switch_monitor_icons_photo.jpg
Comment 3 Przemo Firszt 2013-05-18 23:21:25 UTC
That patch need more work. 
1. Resetting label when user goes back to None as button mapping
2. Displaying proper keystroke when user switches back from None to a previously defined keystroke. (define keystroke->switch mapping to none->switch to keystroke WITHOUT defining a new key.
Comment 4 Przemo Firszt 2013-05-19 00:19:44 UTC
Created attachment 244691 [details] [review]
Pass action name as OLED label, reset to blank on no action

Setting OLED label has been moved to a new location (accel_edited_callback -> accel_set_func) because after "map keystroke"->"map none"->"map keystroke" the OLED wasn't updated because accelerator wasn't edited, but it was set using old value.
Comment 5 Bastien Nocera 2013-05-21 06:46:41 UTC
Review of attachment 244691 [details] [review]:

Looks good.
Comment 6 Bastien Nocera 2013-05-21 06:48:22 UTC
(In reply to comment #2)
> The patch works fine, but OLED capacity is very limited. Strings like: "Show
> On-Screen Help" barely fits, "Wyświetlenie pomocy ekranowej" (Polish) doesn't
> fit at all, the same for "Mostrar la ayuda en pantalla" (Spanish). I'm not sure
> what's the best way to fix it as it's a corner case - the text on the on-screen
> help looks fine. 
> 
> Maybe icons?
> https://github.com/PrzemoF/i4oled/blob/master/icons/help.png
> https://github.com/PrzemoF/i4oled/blob/master/icons/switch-monitor.png
> 
> And that's how they look on Intuos4:
> http://firszt.eu/gnome-devel/help_switch_monitor_icons_photo.jpg

We'll definitely need to use icons for a lot of the shortcuts. I would prefer if the icons were derived from the GNOME symbolic icons, though they might not always be exactly fit for purpose.
Comment 7 Przemo Firszt 2013-05-21 08:09:24 UTC
> We'll definitely need to use icons for a lot of the shortcuts. I would prefer
> if the icons were derived from the GNOME symbolic icons, though they might not
> always be exactly fit for purpose.

I agree. I'll try to convert some of them to 64x32x4bit. Is it OK to use my server or I should get familiar with live.gnome.org?
Comment 8 Bastien Nocera 2013-05-21 08:59:33 UTC
(In reply to comment #7)
> > We'll definitely need to use icons for a lot of the shortcuts. I would prefer
> > if the icons were derived from the GNOME symbolic icons, though they might not
> > always be exactly fit for purpose.
> 
> I agree. I'll try to convert some of them to 64x32x4bit.

This was the point of the GdkPixbuf helper function I requested :)

You can convert, in software, the SVG icon rendered to 32x32 to a GdkPixbuf with 4 bit colour, and transform it into a "base64:" icon.

> Is it OK to use my
> server or I should get familiar with live.gnome.org?

I don't understand what you want to do there.
Comment 9 Przemo Firszt 2013-05-21 09:06:09 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > > We'll definitely need to use icons for a lot of the shortcuts. I would prefer
> > > if the icons were derived from the GNOME symbolic icons, though they might not
> > > always be exactly fit for purpose.
> > 
> > I agree. I'll try to convert some of them to 64x32x4bit.
> 
> This was the point of the GdkPixbuf helper function I requested :)
OK :-)

> You can convert, in software, the SVG icon rendered to 32x32 to a GdkPixbuf
> with 4 bit colour, and transform it into a "base64:" icon.
> 
> > Is it OK to use my
> > server or I should get familiar with live.gnome.org?
> 
> I don't understand what you want to do there.
I'm making external conversion svg -> 64x43x4bit grayscale and I wanted to upload the files somewhere. I'll use my server for the icons & photos of the icons on the tablet.
Comment 10 Przemo Firszt 2013-05-21 14:10:19 UTC
I made a test rendering from gnome symbolic icons and from the same svg, but converted to png. That's how they look on the tablet: 

http://firszt.eu//gnome-devel/icons_white_png_vs_grey_resized.png

Shape is OK (I made some changes to use the alpha channel), but because all symbolic icons are grey we're not using full "dynamic range" of the OLEDs. Simply white icons look much better. I could "brighten" them in the rendering part of the patch, but I don't think it's the right solution.

Ideas:
1. Make a separate set of white icons (hmmm.. no good)
2. Solve the problem in svg icon->gdkpixbuf generation, wherever it will be handled. GdkPixbuf would have to be normalised to use full grayscale even if the original svg icon is not using it. 
3. Leave it like it is now (I don't like this one)  
 

P.S. We should open a new bug to discuss icons
Comment 11 Bastien Nocera 2013-07-15 16:39:48 UTC
Created attachment 249226 [details] [review]
wacom: Show hard-coded action names on OLED too

Show hard-coded action names on OLED as well, not just
for custom actions.
Comment 12 Bastien Nocera 2013-07-15 16:40:34 UTC
Pushed with the commit message fixed up a little.

Attachment 249226 [details] pushed as 3708eab - wacom: Show hard-coded action names on OLED too