Settings: room for duplicate language names
Wider popup, slightly narrower key buttons, 'English 2' instead of 'English · 2'.
This commit is contained in:
+3
-3
@@ -297,7 +297,7 @@ Panel {
|
|||||||
}
|
}
|
||||||
function langTitle(l) { // "English", or "English · 2" for a second entry of the same language
|
function langTitle(l) { // "English", or "English · 2" for a second entry of the same language
|
||||||
var id = String(l.id || l.code), n = id.indexOf("-") > 0 ? id.slice(id.indexOf("-") + 1) : ""
|
var id = String(l.id || l.code), n = id.indexOf("-") > 0 ? id.slice(id.indexOf("-") + 1) : ""
|
||||||
return langName(l.code) + (n ? " · " + n : "")
|
return langName(l.code) + (n ? " " + n : "")
|
||||||
}
|
}
|
||||||
function moveLang(index, delta) { // the first language is the default
|
function moveLang(index, delta) { // the first language is the default
|
||||||
var list = JSON.parse(langsJson), j = index + delta
|
var list = JSON.parse(langsJson), j = index + delta
|
||||||
@@ -392,7 +392,7 @@ Panel {
|
|||||||
bar: root.bar
|
bar: root.bar
|
||||||
open: root.opened
|
open: root.opened
|
||||||
focusTarget: keyCatcher
|
focusTarget: keyCatcher
|
||||||
contentWidth: panel.fittedContentWidth(Style.space(520))
|
contentWidth: panel.fittedContentWidth(Style.space(560))
|
||||||
contentHeight: panel.fittedContentHeight(topBlock.implicitHeight + Style.space(10) + body.implicitHeight + Style.space(4))
|
contentHeight: panel.fittedContentHeight(topBlock.implicitHeight + Style.space(10) + body.implicitHeight + Style.space(4))
|
||||||
|
|
||||||
PanelKeyCatcher {
|
PanelKeyCatcher {
|
||||||
@@ -929,7 +929,7 @@ Panel {
|
|||||||
spacing: Style.space(10)
|
spacing: Style.space(10)
|
||||||
PanelSectionHeader { text: "LANGUAGES"; foreground: root.fg; fontFamily: root.fontFamily }
|
PanelSectionHeader { text: "LANGUAGES"; foreground: root.fg; fontFamily: root.fontFamily }
|
||||||
|
|
||||||
readonly property int keyW: Style.space(112)
|
readonly property int keyW: Style.space(108)
|
||||||
readonly property int sendW: Style.space(70)
|
readonly property int sendW: Style.space(70)
|
||||||
readonly property int actW: Style.space(72)
|
readonly property int actW: Style.space(72)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user