Hi Reader, you can find the answer to this question on this thread: http://www.nabble.com/Re%3A-centering-a-window-p24533620.html
Cheers, Chris skar schrieb: > Hi, > > How do I increase the font size of the title of a window? The default > font size looks too small IMO. > > I tried the theme page at > http://qooxdoo.org/documentation/0.8/ui_theming and the following code > doesn't work. > > >> qx.Theme.define("qx.theme.modern.Font", >> { >> fonts : >> { >> "default" : >> { >> size : 15, >> lineHeight : 1.4 >> } >> } >> }); >> >> qx.Class.define("sample.Application", >> { >> extend : qx.application.Standalone, >> members : >> { >> main: function() >> { >> this.base(arguments); >> var win = new qx.ui.window.Window("Login"); >> win.setLayout(new qx.ui.layout.VBox(10)); >> //win.setShowStatusbar(true); >> //win.setStatus("Please enter your username and password"); >> win.setShowMinimize(false); >> win.setShowMaximize(false); >> win.setModal(true); >> win.setMovable(false); >> win.setShowClose(false); >> //win.addListener("resize", win.center); >> //ask parent to center the login window every time it's resized >> this.getRoot().addListener("resize", function(e) { >> win.center(); >> }); >> win.open(); >> this.getRoot().add(win); >> >> //var atom = new qx.ui.basic.Atom("Please enter your username >> and password below!!!"); >> //win.add(atom); >> >> var label = new qx.ui.basic.Label("Please enter your username >> and password below!!!").set({ >> font : new qx.bom.Font(12, ["Verdana", "sans-serif"]) >> }); >> win.add(label); >> >> } >> } >> }); >> > A pointer/URL to changing style like font size, weight, color etc for > various widgets like label, window, atom etc would be useful. > > cheers, > skar. > > -- Christian Schmidt Software Entwickler 1&1 Internet AG - Web Technologies Ernst-Frey-Straße 9 · DE-76135 Karlsruhe [email protected] Amtsgericht Montabaur / HRB 6484 Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
