1
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
3
const Clutter = imports.gi.Clutter;
4
const St = imports.gi.St;
6
const UI = imports.testcommon.ui;
9
let stage = Clutter.Stage.get_default();
11
let vbox = new St.BoxLayout({ vertical: true,
13
height: stage.height });
14
stage.add_actor(vbox);
16
let hbox = new St.BoxLayout({ style: 'spacing: 12px;' });
19
let text = new St.Label({ text: "Styled Text" });
23
function update_size() {
24
text.style = 'font-size: ' + size + 'pt';
30
button = new St.Button ({ label: 'Smaller', style_class: 'push-button' });
32
button.connect('clicked', function() {
37
button = new St.Button ({ label: 'Bigger', style_class: 'push-button' });
39
button.connect('clicked', function() {