diff options
author | ronie <ronie@kodi.tv> | 2021-07-22 00:39:22 +0200 |
---|---|---|
committer | ronie <ronie@kodi.tv> | 2021-07-31 17:16:51 +0200 |
commit | 059dd3f3c7aa5d1bf8db8a2659298d4170e0d674 (patch) | |
tree | a6117647949ac4e3cd42caa6fec604bee5f0731e /addons | |
parent | a4067bf75aea684774b45abd62178b6e19a3ba9c (diff) |
Keyboard dialog: add password reveal button
Diffstat (limited to 'addons')
-rw-r--r-- | addons/resource.language.en_gb/resources/strings.po | 14 | ||||
-rw-r--r-- | addons/skin.estouchy/media/icon_keyboard_hide.png | bin | 0 -> 1402 bytes | |||
-rw-r--r-- | addons/skin.estouchy/media/icon_keyboard_show.png | bin | 0 -> 1321 bytes | |||
-rw-r--r-- | addons/skin.estouchy/xml/DialogKeyboard.xml | 36 | ||||
-rw-r--r-- | addons/skin.estouchy/xml/Includes.xml | 4 | ||||
-rw-r--r-- | addons/skin.estuary/xml/DialogKeyboard.xml | 4 |
6 files changed, 54 insertions, 4 deletions
diff --git a/addons/resource.language.en_gb/resources/strings.po b/addons/resource.language.en_gb/resources/strings.po index 5986539bb2..95ea140ce5 100644 --- a/addons/resource.language.en_gb/resources/strings.po +++ b/addons/resource.language.en_gb/resources/strings.po @@ -5618,7 +5618,19 @@ msgctxt "#12022" msgid "Resume from {0:s}" msgstr "" -#empty strings from id 12023 to 12309 +#empty strings from id 12023 to 12307 + +#. Label of the show password button in the keyboard dialog +#: xbmc/dialogs/GUIDialogKeyboardGeneric.cpp +msgctxt "#12308" +msgid "Show password" +msgstr "" + +#. Label of the hide password button in the keyboard dialog +#: xbmc/dialogs/GUIDialogKeyboardGeneric.cpp +msgctxt "#12309" +msgid "Hide password" +msgstr "" #: addons/skin.estuary/xml/DialogNumeric.xml #: addons/skin.estouchy/xml/DialogNumeric.xml diff --git a/addons/skin.estouchy/media/icon_keyboard_hide.png b/addons/skin.estouchy/media/icon_keyboard_hide.png Binary files differnew file mode 100644 index 0000000000..c3d59d3723 --- /dev/null +++ b/addons/skin.estouchy/media/icon_keyboard_hide.png diff --git a/addons/skin.estouchy/media/icon_keyboard_show.png b/addons/skin.estouchy/media/icon_keyboard_show.png Binary files differnew file mode 100644 index 0000000000..84fe827ea2 --- /dev/null +++ b/addons/skin.estouchy/media/icon_keyboard_show.png diff --git a/addons/skin.estouchy/xml/DialogKeyboard.xml b/addons/skin.estouchy/xml/DialogKeyboard.xml index 76afd6fc00..deeed76d3c 100644 --- a/addons/skin.estouchy/xml/DialogKeyboard.xml +++ b/addons/skin.estouchy/xml/DialogKeyboard.xml @@ -172,9 +172,9 @@ <control type="button" id="112"> <description>(0,12) key button</description> <onup>306</onup> - <ondown>132</ondown> - <include>KeyboardButton</include> - </control> + <ondown>132</ondown> + <include>KeyboardButton</include> + </control> <control type="group"> <posx>0</posx> <posy>0</posy> @@ -656,6 +656,36 @@ <align>center</align> <aligny>center</aligny> </control> + <control type="group"> + <posx>0</posx> + <posy>0</posy> + <width>76</width> + <height>76</height> + <control type="button" id="310"> + <description>show password button</description> + <posx>0</posx> + <posy>0</posy> + <width>76</width> + <height>76</height> + <texturenofocus colordiffuse="grey3">white.png</texturenofocus> + <texturefocus>list_focus.png</texturefocus> + <textcolor></textcolor> + <font></font> + <align>center</align> + <aligny>center</aligny> + <label></label> + </control> + <control type="image"> + <description>Next Icon image</description> + <posx>13</posx> + <posy>18</posy> + <width>50</width> + <height>40</height> + <aspectratio>keep</aspectratio> + <texture>$VAR[PasswordButton]</texture> + <visible>Control.IsVisible(310)</visible> + </control> + </control> </control> </control> </control> diff --git a/addons/skin.estouchy/xml/Includes.xml b/addons/skin.estouchy/xml/Includes.xml index 52c036bd01..bb168e958a 100644 --- a/addons/skin.estouchy/xml/Includes.xml +++ b/addons/skin.estouchy/xml/Includes.xml @@ -88,6 +88,10 @@ <value condition="Player.Process(videohwdecoder)">HW</value> <value>SW</value> </variable> + <variable name="PasswordButton"> + <value condition="String.IsEqual(Control.GetLabel(310), $LOCALIZE[12308])">icon_keyboard_show.png</value> + <value>icon_keyboard_hide.png</value> + </variable> <include name="ScreenWidth"> <include condition="String.IsEqual(Skin.AspectRatio,16:9)">ScreenWidth-16x9</include> diff --git a/addons/skin.estuary/xml/DialogKeyboard.xml b/addons/skin.estuary/xml/DialogKeyboard.xml index 5fd8de4ac6..8659ef01ad 100644 --- a/addons/skin.estuary/xml/DialogKeyboard.xml +++ b/addons/skin.estuary/xml/DialogKeyboard.xml @@ -568,6 +568,10 @@ <param name="width" value="350" /> </include> <include content="DefaultDialogButton"> + <param name="id" value="310" /> + <param name="width" value="350" /> + </include> + <include content="DefaultDialogButton"> <param name="id" value="309" /> <param name="width" value="350" /> </include> |