1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Exposed toolbar icon size option.

This commit is contained in:
Joe R 2022-02-08 22:42:06 -05:00
parent 158e76a130
commit fd694be7b2
98 changed files with 94 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

View file

@ -0,0 +1,3 @@
Human icon set - https://launchpad.net/human-icon-theme/
Some icons modified to fit PySolFC. Icon set is used under a CC-BY-SA license.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: PySol 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-01-20 21:43-0500\n"
"PO-Revision-Date: 2022-02-08 22:31-0500\n"
"Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n"
"Language-Team: German\n"
"Language: de\n"
@ -4519,6 +4519,18 @@ msgstr "Karte suchen"
msgid "Icon Style"
msgstr ""
msgid "Icon Size"
msgstr ""
msgid "Small icons"
msgstr ""
msgid "Large icons"
msgstr ""
msgid "Extra large icons"
msgstr ""
#: pysollib/ui/tktile/menubar.py:35
msgid "Compound"
msgstr ""

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 1.02\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-01-20 21:43-0500\n"
"PO-Revision-Date: 2022-02-08 22:31-0500\n"
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
"Language-Team: French\n"
"Language: fr\n"
@ -4571,6 +4571,18 @@ msgstr "Trouver carte"
msgid "Icon Style"
msgstr ""
msgid "Icon Size"
msgstr ""
msgid "Small icons"
msgstr ""
msgid "Large icons"
msgstr ""
msgid "Extra large icons"
msgstr ""
#: pysollib/ui/tktile/menubar.py:35
msgid "Compound"
msgstr "Affichage"

View file

@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: it_pysol\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-01-20 21:42-0500\n"
"PO-Revision-Date: 2022-02-08 22:30-0500\n"
"Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n"
"Language-Team: Italiano <it@li.org>\n"
"Language: it\n"
@ -4636,6 +4636,18 @@ msgstr "Trova carta"
msgid "Icon Style"
msgstr ""
msgid "Icon Size"
msgstr ""
msgid "Small icons"
msgstr ""
msgid "Large icons"
msgstr ""
msgid "Extra large icons"
msgstr ""
#: pysollib/ui/tktile/menubar.py:35
msgid "Compound"
msgstr "Composto"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-01-20 21:42-0500\n"
"PO-Revision-Date: 2022-02-08 22:32-0500\n"
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
"Language-Team: Polish <pl@li.org>\n"
"Language: pl\n"
@ -4694,6 +4694,18 @@ msgstr "znajdź kartę"
msgid "Icon Style"
msgstr ""
msgid "Icon Size"
msgstr ""
msgid "Small icons"
msgstr ""
msgid "Large icons"
msgstr ""
msgid "Extra large icons"
msgstr ""
#: pysollib/ui/tktile/menubar.py:35
msgid "Compound"
msgstr "Układ"

View file

@ -4326,6 +4326,18 @@ msgstr ""
msgid "Icon Style"
msgstr ""
msgid "Icon Size"
msgstr ""
msgid "Small icons"
msgstr ""
msgid "Large icons"
msgstr ""
msgid "Extra large icons"
msgstr ""
#: pysollib/ui/tktile/menubar.py:35
msgid "Compound"
msgstr ""

View file

@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2022-01-20 21:42-0500\n"
"PO-Revision-Date: 2022-02-08 22:29-0500\n"
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
"Language-Team: Russian <ru@li.org>\n"
"Language: ru\n"
@ -4660,6 +4660,18 @@ msgstr "Найти карту"
msgid "Icon Style"
msgstr ""
msgid "Icon Size"
msgstr ""
msgid "Small icons"
msgstr "Маленькие пиктограммы"
msgid "Large icons"
msgstr "Большие пиктограммы"
msgid "Extra large icons"
msgstr ""
#: pysollib/ui/tktile/menubar.py:35
msgid "Compound"
msgstr "Компоновка"
@ -5384,9 +5396,3 @@ msgstr "Настроить шрифт"
#~ msgid "Style"
#~ msgstr "Стиль"
#~ msgid "Small icons"
#~ msgstr "Маленькие пиктограммы"
#~ msgid "Large icons"
#~ msgstr "Большие пиктограммы"

View file

@ -585,7 +585,9 @@ class Application:
return self._getImagesDir('cards')
def getToolbarImagesDir(self):
if self.opt.toolbar_size:
if self.opt.toolbar_size == 2:
size = 'xlarge'
elif self.opt.toolbar_size == 1:
size = 'large'
else:
size = 'small'

View file

@ -96,7 +96,7 @@ toolbar = integer(0, 4)
toolbar_style = string
toolbar_relief = string
toolbar_compound = string
toolbar_size = integer(0, 1)
toolbar_size = integer(0, 2)
statusbar = boolean
statusbar_game_number = boolean
statusbar_stuck = boolean

View file

@ -32,6 +32,16 @@ def createToolbarMenu(menubar, menu):
label=name,
variable=menubar.tkopt.toolbar_style,
value=f, command=menubar.mOptToolbarStyle)
submenu = MfxMenu(menu, label=n_('Icon Size'), tearoff=tearoff)
submenu.add_radiobutton(label=n_("Small icons"),
variable=menubar.tkopt.toolbar_size, value=0,
command=menubar.mOptToolbarSize)
submenu.add_radiobutton(label=n_("Large icons"),
variable=menubar.tkopt.toolbar_size, value=1,
command=menubar.mOptToolbarSize)
# submenu.add_radiobutton(label=n_("Extra large icons"),
# variable=menubar.tkopt.toolbar_size, value=2,
# command=menubar.mOptToolbarSize)
submenu = MfxMenu(menu, label=n_('Compound'), tearoff=tearoff)
for comp, label in COMPOUNDS:
submenu.add_radiobutton(
@ -59,13 +69,6 @@ def createToolbarMenu(menubar, menu):
menu.add_radiobutton(label=n_("Right"),
variable=menubar.tkopt.toolbar, value=4,
command=menubar.mOptToolbar)
# menu.add_separator()
# menu.add_radiobutton(label=n_("Small icons"),
# variable=menubar.tkopt.toolbar_size, value=0,
# command=menubar.mOptToolbarSize)
# menu.add_radiobutton(label=n_("Large icons"),
# variable=menubar.tkopt.toolbar_size, value=1,
# command=menubar.mOptToolbarSize)
# ************************************************************************