2011-09-28 09:16:26 -04:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2009-09-19 21:10:15 -04:00
|
|
|
|
2017-02-14 19:43:09 -05:00
|
|
|
const UI = imports.testcommon.ui;
|
|
|
|
|
2019-02-08 22:21:36 -05:00
|
|
|
const { Clutter, St } = imports.gi;
|
2009-09-19 21:10:15 -04:00
|
|
|
|
2012-06-24 15:11:41 -04:00
|
|
|
function test() {
|
|
|
|
let stage = new Clutter.Stage();
|
|
|
|
UI.init(stage);
|
|
|
|
|
|
|
|
let b = new St.BoxLayout({ vertical: true,
|
|
|
|
width: stage.width,
|
|
|
|
height: stage.height });
|
|
|
|
stage.add_actor(b);
|
|
|
|
|
|
|
|
let t;
|
|
|
|
|
|
|
|
t = new St.Label({ "text": "Bold", style_class: "bold" });
|
|
|
|
b.add(t);
|
|
|
|
t = new St.Label({ "text": "Monospace", style_class: "monospace" });
|
|
|
|
b.add(t);
|
|
|
|
t = new St.Label({ "text": "Italic", style_class: "italic" });
|
|
|
|
b.add(t);
|
|
|
|
t = new St.Label({ "text": "Bold Italic", style_class: "bold italic" });
|
|
|
|
b.add(t);
|
|
|
|
t = new St.Label({ "text": "Big Italic", style_class: "big italic" });
|
|
|
|
b.add(t);
|
|
|
|
t = new St.Label({ "text": "Big Bold", style_class: "big bold" });
|
|
|
|
b.add(t);
|
|
|
|
|
|
|
|
let b2 = new St.BoxLayout({ vertical: true, style_class: "monospace" });
|
|
|
|
b.add(b2);
|
|
|
|
t = new St.Label({ "text": "Big Monospace", style_class: "big" });
|
|
|
|
b2.add(t);
|
|
|
|
t = new St.Label({ "text": "Italic Monospace", style_class: "italic" });
|
|
|
|
b2.add(t);
|
|
|
|
|
|
|
|
UI.main(stage);
|
|
|
|
}
|
|
|
|
test();
|