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

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



Frans Pop wrote:
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.

Your scripts are really ok, now we have got to choose a default theme
and theme for visually impaired people; the last propose by Denis
Barbier was using HighContrastLargePrintInverse as the theme for
impaired people (this theme provides A LOT of stock icons in PNG format,
only stock_cancel.png, stock_go-back.png, stock_go-forward,
stock_diaog_info.png, stock_dialog_error.png)
This theme is GPL'ed, shall it be included into gtk-rootskel or provided
by an appropriate udeb?
Still, we lack of a nice default Debian theme :(

ciao

Attilio



Reply to: