[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[G-I & D-I] Setting font and theme



I have added two scripts to rootskel-gtk to set/change the default font 
and theme for the graphical installer.

The first script should be called using
    gtk-set-font <language code>
and will set the proper font for that language.
It includes various checks (including the running frontend and if the font 
exists) and can thus be called blindly.

For localechooser it should probably be called using:
    if [ -x gtk-set-font ]; then
	gtk-set-font $LANGUAGE || true
    fi

The other script should be called using
    gtk-set-theme "<theme name>"
This script needs a check that the theme file actually exists.

THEME SELECTION
===============
I propose defining an internal debconf template "debian-installer/theme" 
that can be set at the bootprompt to define the start-up theme for both 
the newt (using Denis Barbier's change) and the graphical frontend.

This template would be read in a new script in rootskel
   /lib/debian-installer.d/S61theme
which would export FRONTEND_BACKGROUND=dark for the newt frontend and call 
gtk-set-theme for the gtk frontend.

The gtk-set-theme script can of course also be called from within the gtk 
frontend.

Attachment: pgpYtgct5XLrA.pgp
Description: PGP signature


Reply to: