All of lore.kernel.org
 help / color / mirror / Atom feed
* Conditional themes?
@ 2012-10-04 14:09 Dr. Tilmann Bubeck
  2012-10-05  2:22 ` Gerard Butler
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dr. Tilmann Bubeck @ 2012-10-04 14:09 UTC (permalink / raw)
  To: grub-devel

Hello GRUB,

are there plans to make theming conditional, depending on screen  
resolution? Today you have one theme, which is used for all screen  
resolutions from 320x200 up to 1600x800. When using "gfxmode=auto" you do  
not really know, which resolution you get. The theme may look ugly or may  
be completly unusable (see  
https://bugzilla.redhat.com/show_bug.cgi?id=850783).

I could think of some application logic in grub.cfg, e.g.

if [ "${gfxwidth}" -lt 800 ]; then
   theme=${root}/grub2/themes/small
else
   theme=${root}/grub2/themes/large
fi

What do you think about that?

An even more general idea would be to implement a shellish backticks  
operator $() and extend some commands to print out information (here  
"videoinfo"), like:

width=$(videoinfo --show-width)
if [ "${width}" -lt 800 ]; then
   theme=${root}/grub2/themes/small
else
   theme=${root}/grub2/themes/large
fi

Any comments?

Kind regards,
  Tilmann

+-------+-------------------------------------------------------------+
|       | dr. tilmann bubeck               reinform medien- und       |
|       |                                  informationstechnologie AG |
| rein  | fon  : +49 (711) 7 82 76-52      loeffelstr. 40             |
| form  | fax  : +49 (711) 7 82 76-46      70597 stuttgart / germany  |
|    AG | cell.: +49 (172) 8 84 29 72      fon: +49 (711) 75 86 56-10 |
|       | email: t.bubeck@reinform.de      http://www.reinform.de     |
|       +-------------------------------------------------------------+
|       | pflichtangaben nach paragraph 80, AktG:                     |
|       | reinform medien- und informationstechnologie AG, stuttgart  |
|       | handelsregister stuttgart, HRB 23001                        |
|       | vorstand:     dr. tilmann bubeck (vorsitz)                  |
|       | aufsichtsrat: frank stege (vorsitz)                         |
+-------+-------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-06 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04 14:09 Conditional themes? Dr. Tilmann Bubeck
2012-10-05  2:22 ` Gerard Butler
2012-10-06 11:08   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-10-05  3:01 ` Andrey Borzenkov
2012-10-06 15:12 ` Dr. Tilmann Bubeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.