]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
rename to FeatherWallet; UI fixes
authorgg <chown_tee@proton.me>
Tue, 13 Jan 2026 07:15:32 +0000 (02:15 -0500)
committergg <chown_tee@proton.me>
Tue, 13 Jan 2026 07:15:32 +0000 (02:15 -0500)
src/CMakeLists.txt
src/MainWindow.cpp
src/assets/feather.desktop
src/main.cpp

index d7727b2da429061a4ecfe78503315a107bfbc429..9031e1443f60a9632d320a254685a4a761f41f00 100644 (file)
@@ -369,13 +369,13 @@ else()
 
     if (UNIX AND NOT APPLE)
         install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/feather.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/32x32.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME "feather.png")
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/48x48.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME "feather.png")
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/64x64.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME "feather.png")
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/96x96.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/96x96/apps RENAME "feather.png")
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/128x128.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME "feather.png")
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/256x256.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME "feather.png")
-        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/512x512.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps RENAME "feather.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/32x32.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME "FeatherWallet.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/48x48.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME "FeatherWallet.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/64x64.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME "FeatherWallet.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/96x96.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/96x96/apps RENAME "FeatherWallet.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/128x128.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME "FeatherWallet.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/256x256.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME "FeatherWallet.png")
+        install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/512x512.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps RENAME "FeatherWallet.png")
     endif()
 endif()
 
index 364d8ef2173d8035bbce01eeed9a8733e380798a..314c2a7bd47c1f22c66c1a61b2e4bfd8aea00f81 100644 (file)
@@ -7,6 +7,8 @@
 #include <QFileDialog>
 #include <QInputDialog>
 #include <QMessageBox>
+#include <QClipboard>
+#include <QLocale>
 #include <QCheckBox>
 #include <QFormLayout>
 #include <QSpinBox>
@@ -909,7 +911,7 @@ void MainWindow::onBalanceUpdated(quint64 balance, quint64 spendable) {
         QString fiatCurrency = conf()->get(Config::preferredFiatCurrency).toString();
         double balanceFiatAmount = appData()->prices.convert("XMR", fiatCurrency, balance / constants::cdiv);
         if (balance > 0 && balanceFiatAmount == 0.0) {
-            suffixStr += " (---)";
+            suffixStr += " (unknown)";
         } else {
             suffixStr += QString(" (%1)").arg(Utils::amountToCurrencyString(balanceFiatAmount, fiatCurrency));
         }
@@ -1120,6 +1122,23 @@ void MainWindow::onConnectionStatusChanged(int status)
         }
     }
 
+    this->setStatusText(statusStr);
+
+    if (m_wallet) {
+        quint64 walletHeight = m_wallet->blockChainHeight();
+        quint64 daemonHeight = m_wallet->daemonBlockChainHeight();
+        quint64 targetHeight = m_wallet->daemonBlockChainTargetHeight();
+
+        if (walletHeight > 0) {
+            statusStr += QString("\nWallet %1. Daemon %2. Network %3")
+                    .arg(QLocale::system().toString(walletHeight))
+                    .arg(QLocale::system().toString(daemonHeight))
+                    .arg(QLocale::system().toString(targetHeight));
+        }
+    }
+
+    m_statusBtnConnectionStatusIndicator->setToolTip(statusStr);
+
     if (conf()->get(Config::syncPaused).toBool() && !conf()->get(Config::offlineMode).toBool()) {
         if (status == Wallet::ConnectionStatus_Synchronizing 
             || status == Wallet::ConnectionStatus_Synchronized 
index 4f5737aae43c842a24a8c8d8d0b5bc88c55f6004..9542b6a8ac1d032c5397104f1f3e38fed242c4e9 100644 (file)
@@ -3,7 +3,7 @@ Type=Application
 Name=Feather Wallet
 GenericName=Monero Wallet
 Comment=A free Monero desktop wallet
-Icon=feather
+Icon=FeatherWallet
 Exec=feather
 Terminal=false
 Categories=Network;
index 5a7eb134a5cd3b8a30e1079650f9bf1d35893d46..05b1bfd91ca3bc724518cf4e3a64ac973a4152cd 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <QSslSocket>
 #include <iostream>
+#include <QIcon>
+#include <QGuiApplication>
 
 #include "Application.h"
 #include "constants.h"
@@ -105,6 +107,12 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
     QApplication::setApplicationName("FeatherWallet");
     QApplication::setApplicationVersion(FEATHER_VERSION);
 
+#if defined(Q_OS_LINUX)
+    QGuiApplication::setDesktopFileName("feather");
+#endif
+
+    QApplication::setWindowIcon(QIcon(":/assets/images/appicons/64x64.png"));
+
     QCommandLineParser parser;
     parser.setApplicationDescription("Feather - a free Monero desktop wallet");
     QCommandLineOption helpOption = parser.addHelpOption();