diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2021-04-27 13:34:23 +0300 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-09-27 17:15:00 +0200 |
commit | 089c7d05fde13251eb8cd8daaf7627b6bb0072f9 (patch) | |
tree | 2ac7af0611be392a8c2e953656426ba2fbe2de47 /cui/uiconfig/ui | |
parent | 6e200689eb309cdbe1e4f08311a400835de19bfb (diff) |
tdf#48622 add border line thickness predefined values in UI
According to multiple reports border line width selection will be
more intuitive with some predefined values. Here is an implementation
of this proposal: line width can be selected from combobox from
predefined values (thin, medium, thick and custom). Classical spinner
is right now hidden unless custom line width is selected.
Change-Id: I87a6237335b79a5f5b63e109360e1ea8f12ae071
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114709
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'cui/uiconfig/ui')
-rw-r--r-- | cui/uiconfig/ui/borderpage.ui | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/cui/uiconfig/ui/borderpage.ui b/cui/uiconfig/ui/borderpage.ui index bcdd0d39030a..2847f0b736cb 100644 --- a/cui/uiconfig/ui/borderpage.ui +++ b/cui/uiconfig/ui/borderpage.ui @@ -251,15 +251,43 @@ </packing> </child> <child> - <object class="GtkSpinButton" id="linewidthmf"> + <object class="GtkGrid" id="gridlinewidth"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="halign">start</property> - <property name="activates_default">True</property> - <property name="adjustment">adjustment1</property> - <property name="digits">2</property> - <property name="truncate-multiline">True</property> - <property name="value">0.05</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">6</property> + <property name="margin-start">0</property> + <property name="margin-top">0</property> + <child> + <object class="GtkComboBoxText" id="linewidthlb"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <items> + <item translatable="yes" context="borderpage|linewidthlb">Thin</item> + <item translatable="yes" context="borderpage|linewidthlb">Medium</item> + <item translatable="yes" context="borderpage|linewidthlb">Thick</item> + <item translatable="yes" context="borderpage|linewidthlb">Custom</item> + </items> + </object> + <packing> + <property name="left_attach">0</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="linewidthmf"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">start</property> + <property name="activates_default">True</property> + <property name="adjustment">adjustment1</property> + <property name="digits">2</property> + <property name="truncate-multiline">True</property> + <property name="value">0.05</property> + </object> + <packing> + <property name="left_attach">1</property> + </packing> + </child> </object> <packing> <property name="left_attach">1</property> |