From a758a799cf79056470dde92c32ea88f2807dfac2 Mon Sep 17 00:00:00 2001 From: James Cook Date: Wed, 11 Nov 2009 10:56:31 -0800 Subject: Add widgets/ui_ctrl.xml that can set default font size across all widgets. Individual widgets/*.xml files will need to have explicit font="foo" params removed to start using the defaults. Discussed with Richard. --- indra/llui/lluictrl.cpp | 2 +- indra/newview/skins/default/xui/en/floater_test_widgets.xml | 10 ++++++++++ indra/newview/skins/default/xui/en/menu_login.xml | 8 ++++++++ indra/newview/skins/default/xui/en/widgets/ui_ctrl.xml | 5 +++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 indra/newview/skins/default/xui/en/widgets/ui_ctrl.xml (limited to 'indra') diff --git a/indra/llui/lluictrl.cpp b/indra/llui/lluictrl.cpp index 08fc8fb784..dd807a3f7e 100644 --- a/indra/llui/lluictrl.cpp +++ b/indra/llui/lluictrl.cpp @@ -38,7 +38,7 @@ #include "llpanel.h" #include "lluictrlfactory.h" -static LLDefaultChildRegistry::Register r("ui_ctrl"); +static LLWidgetNameRegistry::StaticRegistrar r(&typeid(LLUICtrl::Params), "ui_ctrl"); LLUICtrl::Params::Params() : tab_stop("tab_stop", true), diff --git a/indra/newview/skins/default/xui/en/floater_test_widgets.xml b/indra/newview/skins/default/xui/en/floater_test_widgets.xml index 44dcb07526..a2055d8c52 100644 --- a/indra/newview/skins/default/xui/en/floater_test_widgets.xml +++ b/indra/newview/skins/default/xui/en/floater_test_widgets.xml @@ -380,6 +380,16 @@ line to actually fit tool_tip="Color Swatch: Click to open Color Picker" top_delta="0" width="80" /> + + Monospace Button Flyout Checkbox + + + + diff --git a/indra/newview/skins/default/xui/en/widgets/ui_ctrl.xml b/indra/newview/skins/default/xui/en/widgets/ui_ctrl.xml new file mode 100644 index 0000000000..2f72ad65a1 --- /dev/null +++ b/indra/newview/skins/default/xui/en/widgets/ui_ctrl.xml @@ -0,0 +1,5 @@ + + + -- cgit v1.2.3