help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Ideas for preference backend


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Ideas for preference backend
Date: Fri, 5 Nov 2010 13:13:25 +0100

On Fri, Nov 5, 2010 at 10:47, Mathieu Suen <address@hidden> wrote:
> 1)First question is wether to use a XML, ini .. file or a file containing 
> plain
> smalltalk code.

Either ini or smalltalk.  In the latter case there is already "~/.st/init.st".

Paolo

> Proposition 2: Less but more customizable one:
> PrefConfiguration from: {
>      'GTK' -> {
>           'font' -> {
>                'size' -> 12.
>                'style' -> 'italic'
>        }.
>        'color' -> {
>            'windows'  -> {
>                'background' -> 'EDE9E3'.
>            }
>        }
>        }
> }

Two levels only please:

(Smalltalk preferences at: #windows)
    at: #background put: 'EDE9E3'.

or you can even force the first level to be a package.

(PackageLoader packageAt: 'GTK') preferences
    at: #'window-background' put: 'EDE9E3';
    at: #'font-size' put: 12.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]