Make the label smaller to fit on screen.

As we are on the quicktag module it seems quite obvious that we are
handling quicktag. So let's just use "tag" instead of "quicktag", this
is a bit smaller and it saves spaces on the widget. This ensure that
the whole module is visible in most cases (panel size, font size...).
This commit is contained in:
Pascal Obry
2017-02-28 16:36:32 +01:00
parent 8a32bf21d0
commit 1831db530d

View File

@@ -163,7 +163,7 @@ for j=1,qnr do
local old_quicktag = dt.new_widget("combobox"){
label = _("old quicktag"),
label = _("old tag"),
tooltip = _("select the quicktag to replace")
}
@@ -180,14 +180,14 @@ update_quicktag_list()
local new_quicktag = dt.new_widget("entry"){
text = "",
placeholder = _("new quicktag"),
placeholder = _("new tag"),
is_password = true,
editable = true,
tooltip = _("enter your tag here")
}
local set_quicktag_button = dt.new_widget("button") {
label = _("set quicktag"),
label = _("set tag"),
clicked_callback = function()
local old_tag = quicktag_table[old_quicktag.selected]
if new_quicktag.text == "" then
@@ -204,7 +204,7 @@ local set_quicktag_button = dt.new_widget("button") {
local new_qt_widget = dt.new_widget ("box") {
orientation = "horizontal",
dt.new_widget("label") { label = _("new quicktag") },
dt.new_widget("label") { label = _("new tag") },
new_quicktag,
set_quicktag_button
}