summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-12-13 17:41:04 +0100
committerJan Holesovsky <kendy@collabora.com>2013-12-13 17:41:04 +0100
commitcabd8725dbd2a1602c6e687788492e5177f5a3e9 (patch)
treee157b233ab5c53e0e202a4dfbe46fe10329d88e9
parent919c5e4bbeaafc707a668851feef7a4818c40f66 (diff)
startcenter: Move the 'Create' under the separator & add a colon.
Change-Id: Ie8a1ce8628fa0f31ae6d6a3f1303342c145e33aa
-rw-r--r--sfx2/source/dialog/backingwindow.cxx6
-rw-r--r--sfx2/uiconfig/ui/startcenter.ui29
2 files changed, 20 insertions, 15 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 8ee2919cb7a1..f7a66fb869e0 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -59,6 +59,7 @@ const char TEMPLATE_URL[] = "slot:5500";
const char OPEN_URL[] = ".uno:Open";
const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess";
+const int nButtonsFontSize = 15;
const Color aButtonsBackground(114, 168, 84); // TDF green
const Color aButtonsText(COL_WHITE);
@@ -234,6 +235,9 @@ void BackingWindow::initControls()
// setup nice colors
mpCreateLabel->SetControlForeground(aButtonsText);
+ Font aFont(mpCreateLabel->GetControlFont());
+ aFont.SetHeight(nButtonsFontSize);
+ mpCreateLabel->SetControlFont(aFont);
mpHelpButton->SetControlForeground(aButtonsText);
mpExtensionsButton->SetControlForeground(aButtonsText);
@@ -261,7 +265,7 @@ void BackingWindow::setupButton( PushButton* pButton )
{
// the buttons should have a bit bigger font
Font aFont(pButton->GetControlFont());
- aFont.SetHeight(15);
+ aFont.SetHeight(nButtonsFontSize);
pButton->SetControlFont(aFont);
// color that fits the theme
diff --git a/sfx2/uiconfig/ui/startcenter.ui b/sfx2/uiconfig/ui/startcenter.ui
index dd175fbc3a8d..7f60948abb8e 100644
--- a/sfx2/uiconfig/ui/startcenter.ui
+++ b/sfx2/uiconfig/ui/startcenter.ui
@@ -2,6 +2,11 @@
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
+ <object class="GtkImage" id="calc_all_image">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="pixbuf">res/ods_32_8.png</property>
+ </object>
<object class="GtkBox" id="StartCenter">
<property name="can_focus">False</property>
<child>
@@ -23,9 +28,10 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
+ <property name="spacing">3</property>
<child>
<object class="GtkButton" id="open_all">
- <property name="label" translatable="yes">_Open</property>
+ <property name="label" translatable="yes">_Open File</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -61,13 +67,11 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="create_label">
+ <object class="GtkSeparator" id="separator1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">12</property>
- <property name="margin_top">12</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Create</property>
+ <property name="margin_left">6</property>
+ <property name="margin_right">6</property>
</object>
<packing>
<property name="expand">False</property>
@@ -76,11 +80,13 @@
</packing>
</child>
<child>
- <object class="GtkSeparator" id="separator1">
+ <object class="GtkLabel" id="create_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">6</property>
- <property name="margin_right">6</property>
+ <property name="margin_left">12</property>
+ <property name="margin_bottom">6</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Create:</property>
</object>
<packing>
<property name="expand">False</property>
@@ -359,11 +365,6 @@
</packing>
</child>
</object>
- <object class="GtkImage" id="calc_all_image">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="pixbuf">res/ods_32_8.png</property>
- </object>
<object class="GtkImage" id="database_all_image">
<property name="visible">True</property>
<property name="can_focus">False</property>