Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions package/contents/config/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@
<default>false</default>
</entry>

<entry name="iconSize" type="Enum">
<label>Icon size.</label>
<choices name="Settings::iconSize">
<choice name="Small" />
<choice name="Medium" />
<choice name="Large" />
<choice name="Huge" />
</choices>
<default>Medium</default>
</entry>

<entry name="numberColumns" type="Int">
<default>6</default>
</entry>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 14 additions & 1 deletion package/contents/ui/ConfigGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Kirigami.FormLayout {

property alias cfg_labels2lines: labels2lines.checked
property alias cfg_displayPosition: displayPosition.currentIndex
property alias cfg_iconSize: iconSize.currentIndex


RowLayout {
Expand Down Expand Up @@ -163,7 +164,7 @@ Kirigami.FormLayout {
}

ComboBox {
Kirigami.FormData.label: i18n("Menu position")
Kirigami.FormData.label: i18n("Menu position:")
id: displayPosition
model: [
i18n("Default"),
Expand Down Expand Up @@ -194,6 +195,18 @@ Kirigami.FormLayout {
Kirigami.FormData.label: i18n("Number of rows")
}

ComboBox {
Kirigami.FormData.label: i18n("Icon size:")
id: iconSize
model: [
i18n("Small"),
i18n("Medium"),
i18n("Large"),
i18n("Huge"),
]
onActivated: cfg_iconSize = currentIndex
}

RowLayout{

//Layout.fillWidth: true
Expand Down
33 changes: 21 additions & 12 deletions package/contents/ui/MenuRepresentation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ import QtQuick.Controls 2.12
Item{

id: main
property int sizeImage: PlasmaCore.Units.iconSizes.large * 2
property int sizeImage:
if (plasmoid.configuration.iconSize === 0) PlasmaCore.Units.iconSizes.small * 2;
else if (plasmoid.configuration.iconSize === 2) PlasmaCore.Units.iconSizes.large * 2;
else if (plasmoid.configuration.iconSize === 3) PlasmaCore.Units.iconSizes.huge * 2;
else PlasmaCore.Units.iconSizes.medium * 2

onVisibleChanged: {
root.visible = !root.visible
Expand All @@ -55,7 +59,7 @@ Item{
location: PlasmaCore.Types.Floating
hideOnWindowDeactivate: true

property int iconSize: PlasmaCore.Units.iconSizes.large
property int iconSize: sizeImage / 2
property int cellSize: iconSize
+ PlasmaCore.Units.gridUnit * 2
+ (2 * Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom,
Expand Down Expand Up @@ -167,8 +171,8 @@ Item{
FocusScope {

id: rootItem
Layout.minimumWidth: (root.cellSize * plasmoid.configuration.numberColumns)+ PlasmaCore.Units.largeSpacing
Layout.maximumWidth: (root.cellSize * plasmoid.configuration.numberColumns)+ PlasmaCore.Units.largeSpacing
Layout.minimumWidth: (root.cellSize * plasmoid.configuration.numberColumns) + PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing
Layout.maximumWidth: (root.cellSize * plasmoid.configuration.numberColumns) + PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing
Layout.minimumHeight: (root.cellSize * plasmoid.configuration.numberRows) + searchField.implicitHeight + (plasmoid.configuration.viewUser ? main.sizeImage*0.5 : PlasmaCore.Units.largeSpacing * 1.5 ) + PlasmaCore.Units.largeSpacing * 6
Layout.maximumHeight: (root.cellSize * plasmoid.configuration.numberRows) + searchField.implicitHeight + (plasmoid.configuration.viewUser ? main.sizeImage*0.5 : PlasmaCore.Units.largeSpacing * 1.5 ) + PlasmaCore.Units.largeSpacing * 6

Expand Down Expand Up @@ -295,14 +299,14 @@ Item{
ToolTip.delay: 200
ToolTip.timeout: 1000
ToolTip.visible: hovered
ToolTip.text: i18n("Leave ...")
ToolTip.text: i18n("Leave...")
}
}

PlasmaExtras.Heading {
anchors {
top: rowTop.bottom
topMargin: PlasmaCore.Units.largeSpacing
topMargin: -(PlasmaCore.Units.iconSizes.large - sizeImage) / 2
horizontalCenter: parent.horizontalCenter
}
level: 1
Expand All @@ -328,7 +332,7 @@ Item{
PlasmaComponents3.TextField {
id: searchField
Layout.fillWidth: true
placeholderText: i18n("Type here to search ...")
placeholderText: i18n("Type here to search...")
leftPadding: PlasmaCore.Units.largeSpacing + PlasmaCore.Units.iconSizes.small
text: ""
//clearButtonShown: true // TODO: kubuntu 20.04
Expand Down Expand Up @@ -433,7 +437,8 @@ Item{
right: parent.right
}

width: root.cellSize * plasmoid.configuration.numberColumns + PlasmaCore.Units.largeSpacing
width: root.cellSize * plasmoid.configuration.numberColumns
+ PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing * 1.8
height: root.cellSize * plasmoid.configuration.numberRows
focus: true
cellWidth: root.cellSize
Expand Down Expand Up @@ -473,12 +478,14 @@ Item{
right: parent.right

}
width: root.cellSize * plasmoid.configuration.numberColumns + PlasmaCore.Units.largeSpacing
width: root.cellSize * plasmoid.configuration.numberColumns
+ PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing * 1.8
height: root.cellSize * plasmoid.configuration.numberRows

Item {
id: mainColumn
width: root.cellSize * plasmoid.configuration.numberColumns + PlasmaCore.Units.largeSpacing
width: root.cellSize * plasmoid.configuration.numberColumns
+ PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing * 1.8
height: root.cellSize * plasmoid.configuration.numberRows

property Item visibleGrid: allAppsGrid
Expand All @@ -492,7 +499,8 @@ Item{
ItemGridView {
id: allAppsGrid

width: root.cellSize * plasmoid.configuration.numberColumns + PlasmaCore.Units.largeSpacing
width: root.cellSize * plasmoid.configuration.numberColumns
+ PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing * 1.8
height: root.cellSize * plasmoid.configuration.numberRows

cellWidth: root.cellSize
Expand All @@ -514,7 +522,8 @@ Item{

ItemMultiGridView {
id: runnerGrid
width: root.cellSize * plasmoid.configuration.numberColumns + PlasmaCore.Units.largeSpacing
width: root.cellSize * plasmoid.configuration.numberColumns
+ PlasmaCore.Units.largeSpacing + PlasmaCore.Units.smallSpacing * 1.8
height: root.cellSize * plasmoid.configuration.numberRows
z: (opacity == 1.0) ? 1 : 0
aCellWidth: parent.width - PlasmaCore.Units.largeSpacing
Expand Down
2 changes: 2 additions & 0 deletions package/metadata.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ X-KDE-PluginInfo-License=GPL v2+
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-PluginInfo-Website=https://store.kde.org/p/1312669/

Name[fr]=Ditto Menu
Name[ko]=Ditto 메뉴
Name[nl]=Ditto-menu
Name[pt_BR]=Ditto Menu
Name[ru]=Ditto Menu
Name[tr]=Ditto Menu
Comment[fr]=Un menu de lancement configurable
Comment[ko]=프로그램 실행기
Comment[nl]=Een instelbare programmastarter
Comment[pl]=Konfigurowalne menu uruchamiania programów
Expand Down
15 changes: 8 additions & 7 deletions package/translate/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ Or if you know how to make a pull request
## Status
| Locale | Lines | % Done|
|----------|---------|-------|
| Template | 30 | |
| ko | 27/30 | 90% |
| nl | 20/30 | 66% |
| pl | 22/30 | 73% |
| pt_BR | 30/30 | 100% |
| ru | 30/30 | 100% |
| tr | 23/30 | 76% |
| Template | 35 | |
| fr | 29/35 | 82% |
| ko | 27/35 | 77% |
| nl | 21/35 | 60% |
| pl | 23/35 | 65% |
| pt_BR | 30/35 | 85% |
| ru | 35/35 | 100% |
| tr | 24/35 | 68% |
38 changes: 31 additions & 7 deletions package/translate/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dittomenu\n"
"Report-Msgid-Bugs-To: https://store.kde.org/p/1312669/\n"
"POT-Creation-Date: 2023-05-01 16:59-0300\n"
"POT-Creation-Date: 2024-01-27 22:40+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: omano\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -68,8 +68,8 @@ msgid "Show favorites first"
msgstr "Voir les Favoris en premier"

#: ../contents/ui/ConfigGeneral.qml
msgid "Menu position"
msgstr "Position du menu"
msgid "Menu position:"
msgstr "Position du menu:"

#: ../contents/ui/ConfigGeneral.qml
msgid "Default"
Expand All @@ -95,6 +95,26 @@ msgstr "Nombre de colonnes"
msgid "Number of rows"
msgstr "Nombre de lignes"

#: ../contents/ui/ConfigGeneral.qml
msgid "Icon size:"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Small"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Medium"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Large"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Huge"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Unhide all hidden applications"
msgstr "Ne plus cacher les applications"
Expand All @@ -103,6 +123,10 @@ msgstr "Ne plus cacher les applications"
msgid "Unhidden!"
msgstr "Plus cachées!"

#: ../contents/ui/main.qml
msgid "Edit Applications..."
msgstr ""

#: ../contents/ui/MenuRepresentation.qml
msgid "System Preferences"
msgstr "Préférences Système"
Expand All @@ -116,16 +140,16 @@ msgid "Lock Screen"
msgstr "Verrouiller l'écran"

#: ../contents/ui/MenuRepresentation.qml
msgid "Leave ..."
msgstr "Quitter ..."
msgid "Leave..."
msgstr "Quitter..."

#: ../contents/ui/MenuRepresentation.qml
msgid "Hi, "
msgstr "Salut, "

#: ../contents/ui/MenuRepresentation.qml
msgid "Type here to search ..."
msgstr "Rechercher ..."
msgid "Type here to search..."
msgstr "Rechercher..."

#: ../contents/ui/MenuRepresentation.qml
msgid "Favorites"
Expand Down
28 changes: 24 additions & 4 deletions package/translate/ko.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://store.kde.org/p/1312669/\n"
"POT-Creation-Date: 2023-05-01 16:59-0300\n"
"POT-Creation-Date: 2024-01-27 22:40+0300\n"
"PO-Revision-Date: 2021-09-29 09:43+0900\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -65,7 +65,7 @@ msgid "Show favorites first"
msgstr "즐겨찾기 먼저 표시"

#: ../contents/ui/ConfigGeneral.qml
msgid "Menu position"
msgid "Menu position:"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
Expand All @@ -92,6 +92,26 @@ msgstr ""
msgid "Number of rows"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Icon size:"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Small"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Medium"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Large"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Huge"
msgstr ""

#: ../contents/ui/ConfigGeneral.qml
msgid "Unhide all hidden applications"
msgstr "모든 숨겨진 프로그램 복구"
Expand All @@ -117,15 +137,15 @@ msgid "Lock Screen"
msgstr "잠금"

#: ../contents/ui/MenuRepresentation.qml
msgid "Leave ..."
msgid "Leave..."
msgstr "떠나기..."

#: ../contents/ui/MenuRepresentation.qml
msgid "Hi, "
msgstr "안녕하세요, "

#: ../contents/ui/MenuRepresentation.qml
msgid "Type here to search ..."
msgid "Type here to search..."
msgstr "검색..."

#: ../contents/ui/MenuRepresentation.qml
Expand Down
Loading