From 7030af60f1742b0db64acb58b339bd330a199b13 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sun, 30 Jan 2022 23:24:49 +0100 Subject: [PATCH] Fixing bug with pick new color dialog, trying to fix icons on dark theme, adding keyword to metadata. --- LogarithmPlotter/logarithmplotter.py | 1 + .../eu/ad5001/LogarithmPlotter/AppMenuBar.qml | 1 + .../ObjectLists/ObjectCreationGrid.qml | 2 +- .../ObjectLists/ObjectLists.qml | 2 +- .../LogarithmPlotter/icons/objects/Point.svg | 79 +------------------ ...5001.LogarithmPlotter.metainfo.flatpak.xml | 16 ++++ linux/eu.ad5001.LogarithmPlotter.metainfo.xml | 19 ++++- 7 files changed, 39 insertions(+), 81 deletions(-) diff --git a/LogarithmPlotter/logarithmplotter.py b/LogarithmPlotter/logarithmplotter.py index fcd1c66..c761542 100644 --- a/LogarithmPlotter/logarithmplotter.py +++ b/LogarithmPlotter/logarithmplotter.py @@ -85,6 +85,7 @@ def run(): app = QApplication(argv) app.setApplicationName("LogarithmPlotter") app.setOrganizationName("Ad5001") + app.styleHints().setShowShortcutsInContextMenus(True) app.setWindowIcon(QIcon(path.realpath(path.join(getcwd(), "logarithmplotter.svg")))) # Installing translators diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml index e6eb5c4..a50ecc5 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/AppMenuBar.qml @@ -18,6 +18,7 @@ import QtQuick 2.12 import QtQuick.Dialogs 1.3 +//import QtQuick.Controls 2.12 import eu.ad5001.MixedMenu 1.1 import "js/objects.js" as Objects import "js/historylib.js" as HistoryLib diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml index 16b5464..0711d17 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectCreationGrid.qml @@ -57,7 +57,7 @@ Column { icon.source: '../icons/objects/' + modelData + '.svg' icon.width: 24 icon.height: 24 - icon.color: sysPalette.buttonText + icon.color: sysPalette.windowText ToolTip.visible: hovered ToolTip.delay: 200 ToolTip.text: text diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml index 09da7be..e953e37 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml @@ -204,7 +204,7 @@ ListView { D.ColorDialog { id: pickColor color: obj.color - title: qsTr("Pick new color for %1 %2").arg(Objects.types[objType].displayType()) + title: qsTr("Pick new color for %1 %2").arg(Objects.types[objType].displayType()).arg(obj.name) onAccepted: { history.addToHistory(new HistoryLib.EditedProperty( obj.name, objType, "color", diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg index ac67ca1..8bee87b 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/icons/objects/Point.svg @@ -1,78 +1 @@ - - - - - - - - - - - image/svg+xml - - - - - - - - A - - +A diff --git a/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml b/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml index 9c3b1bc..d6e7966 100644 --- a/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml +++ b/linux/eu.ad5001.LogarithmPlotter.metainfo.flatpak.xml @@ -77,6 +77,7 @@ Science Education + Qt https://apps.ad5001.eu/logarithmplotter/ @@ -184,6 +185,21 @@ Ad5001 mail@ad5001.eu + + + Plot + Plotter + Log + Logarithm + Logarithmic + Bode + Magnitude + Diagram + Graph + Phase + Sequence + Distribution + diff --git a/linux/eu.ad5001.LogarithmPlotter.metainfo.xml b/linux/eu.ad5001.LogarithmPlotter.metainfo.xml index d8785d5..d717b40 100644 --- a/linux/eu.ad5001.LogarithmPlotter.metainfo.xml +++ b/linux/eu.ad5001.LogarithmPlotter.metainfo.xml @@ -77,6 +77,7 @@ Science Education + Qt https://apps.ad5001.eu/logarithmplotter/ @@ -98,7 +99,8 @@ https://apps.ad5001.eu/img/hu/logarithmplotter/welcome.png https://apps.ad5001.eu/img/no/gain.png https://apps.ad5001.eu/img/no/logarithmplotter/phase.png - https://apps.ad5001.eu/img/no/logarithmplotter/welcome.png + https://apps.ad5001.eu/img/no/logarithmplotter/welcome.png + @@ -183,6 +185,21 @@ Ad5001 mail@ad5001.eu + + + Plot + Plotter + Log + Logarithm + Logarithmic + Bode + Magnitude + Diagram + Graph + Phase + Sequence + Distribution +