15 changed files with 2651 additions and 1664 deletions
@ -0,0 +1,24 @@ |
|||
#!/bin/bash |
|||
# Copyright 2018-2023 The Hush Developers |
|||
# Released under the GPLv3 |
|||
|
|||
# This builds a binary called "silentdragonx" |
|||
|
|||
set -e |
|||
|
|||
# TODO: not ideal, hushd.exe should only be looked for on windoze |
|||
if [ -e "dragonxd" ]; then |
|||
echo "Found dragonxd binary" |
|||
elif [ -e "hushd.exe" ]; then |
|||
echo "Found hushd.exe binary" |
|||
else |
|||
echo "dragonxd could not be found!" |
|||
echo "Either copy the binary to this dir or make a symlink." |
|||
echo "This command will create a symlink to it if this repo is in the same directory as your hush3.git: " |
|||
echo "ln -s ../hush3/src/dragonxd" |
|||
echo "For windoze you should copy hushd.exe to this directory" |
|||
exit 1 |
|||
fi |
|||
|
|||
# Use a modified QT project file with same build.sh |
|||
SDCONF=silentdragontumin.pro ./build.sh $@ |
@ -0,0 +1,114 @@ |
|||
QWidget, QMainWindow, QMenuBar, QMenu, QDialog, QTabWidget, QTableView, QScrollArea, QGroupBox, QPlainTextEdit, QLineEdit, QLabel, MainWindow { |
|||
background-color: #232834; |
|||
color: #91a4b8; |
|||
} |
|||
QTabWidget QTabBar::tab { |
|||
padding-left:20px; |
|||
padding-right:20px; |
|||
padding-top:5px; |
|||
padding-bottom:5px; |
|||
border: 1px solid #343F4B; |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
} |
|||
QTabWidget QTabBar::tab:selected { |
|||
min-height: 10px; |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
color:#91a4b8; |
|||
border: 1px ridge #91a4b8; |
|||
} |
|||
QTabWidget QTabBar::tab:hover { |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
color:#91a4b8; |
|||
border: 1px ridge #91a4b8; |
|||
min-height: 20px |
|||
} |
|||
QHeaderView { |
|||
/* Table Header */ |
|||
background-color:#232834; |
|||
} |
|||
QHeaderView::section { |
|||
/* Table Header Sections */ |
|||
qproperty-alignment:center; |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
color:#91a4b8; |
|||
min-height:25px; |
|||
font-weight:bold; |
|||
font-size:11px; |
|||
outline:0; |
|||
border:1px solid #343F4B; |
|||
border-right:1px solid #91a4b8; |
|||
border-left:1px solid #91a4b8; |
|||
padding-left:5px; |
|||
padding-right:5px; |
|||
padding-top:2px; |
|||
padding-bottom:2px; |
|||
} |
|||
QHeaderView::section:last { |
|||
border-right: 0px solid #d7d7d7; |
|||
} |
|||
QScrollArea { |
|||
background:transparent; |
|||
border:0px; |
|||
} |
|||
QTableView { |
|||
/* Table - has to be selected as a class otherwise it throws off QCalendarWidget */ |
|||
background:#232834; |
|||
} |
|||
QTableView::item { |
|||
/* Table Item */ |
|||
background-color:#232834; |
|||
border:1px solid #91a4b8; |
|||
font-size:12px; |
|||
} |
|||
QTableView::item:selected { |
|||
/* Table Item Selected */ |
|||
background-color:#91a4b8; |
|||
color:#232834; |
|||
} |
|||
QMenuBar { |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
color: #91a4b8; |
|||
} |
|||
QMenuBar::item { |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
color: #91a4b8; |
|||
} |
|||
QMenuBar::item:selected { |
|||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); |
|||
} |
|||
QPushButton#startmining { |
|||
background-color: #343F4B; |
|||
border-color: #91A4B8; |
|||
padding: 10px; |
|||
} |
|||
QPushButton#startmining:hover { |
|||
background-color: #232834; |
|||
} |
|||
QPushButton#startmining:pressed { |
|||
background-color: #232834; |
|||
} |
|||
QPushButton#startmining:disabled { |
|||
background-color: #232834; |
|||
} |
|||
QPushButton#stopmining { |
|||
background-color: #343F4B; |
|||
border-color: #91A4B8; |
|||
padding: 10px; |
|||
margin-top: 7px; |
|||
} |
|||
QPushButton#stopmining:hover { |
|||
background-color: #232834; |
|||
} |
|||
QPushButton#stopmining:pressed { |
|||
background-color: #232834; |
|||
} |
|||
QPushButton#stopmining:disabled { |
|||
background-color: #232834; |
|||
} |
|||
QComboBox#genproclimit{ |
|||
font-size: 24px; |
|||
height: 40px; |
|||
} |
|||
QMenu::item:selected{ |
|||
background-color: #343F4B |
|||
} |
Binary file not shown.
@ -0,0 +1,162 @@ |
|||
# Copyright 2018-2023 The Hush Developers |
|||
# Released under the GPLv3 |
|||
|
|||
QT += core gui network |
|||
|
|||
CONFIG += precompile_header |
|||
|
|||
PRECOMPILED_HEADER = src/precompiled.h |
|||
|
|||
QT += widgets |
|||
|
|||
TARGET = silentdragontumin |
|||
|
|||
TEMPLATE = app |
|||
|
|||
# The following define makes your compiler emit warnings if you use |
|||
# any feature of Qt which has been marked as deprecated (the exact warnings |
|||
# depend on your compiler). Please consult the documentation of the |
|||
# deprecated API in order to know how to port your code away from it. |
|||
DEFINES += \ |
|||
QT_DEPRECATED_WARNINGS |
|||
|
|||
INCLUDEPATH += src/3rdparty/ |
|||
INCLUDEPATH += src/ |
|||
|
|||
mac: LIBS+= -Wl,-dead_strip |
|||
mac: LIBS+= -Wl,-dead_strip_dylibs |
|||
mac: LIBS+= -Wl,-bind_at_load |
|||
|
|||
RESOURCES = application-sdx.qrc |
|||
|
|||
MOC_DIR = bin |
|||
OBJECTS_DIR = bin |
|||
UI_DIR = src |
|||
|
|||
CONFIG += c++14 |
|||
|
|||
SOURCES += \ |
|||
src/main.cpp \ |
|||
src/mainwindow.cpp \ |
|||
src/rpc.cpp \ |
|||
src/balancestablemodel.cpp \ |
|||
src/3rdparty/qrcode/BitBuffer.cpp \ |
|||
src/3rdparty/qrcode/QrCode.cpp \ |
|||
src/3rdparty/qrcode/QrSegment.cpp \ |
|||
src/settings.cpp \ |
|||
src/sendtab.cpp \ |
|||
src/senttxstore.cpp \ |
|||
src/txtablemodel.cpp \ |
|||
src/peerstablemodel.cpp \ |
|||
src/bannedpeerstablemodel.cpp \ |
|||
src/qrcodelabel.cpp \ |
|||
src/connection.cpp \ |
|||
src/fillediconlabel.cpp \ |
|||
src/addressbook.cpp \ |
|||
src/logger.cpp \ |
|||
src/addresscombo.cpp \ |
|||
src/validateaddress.cpp \ |
|||
src/recurring.cpp \ |
|||
src/requestdialog.cpp \ |
|||
src/memoedit.cpp \ |
|||
src/viewalladdresses.cpp |
|||
|
|||
HEADERS += \ |
|||
src/guiconstants.h \ |
|||
src/mainwindow.h \ |
|||
src/precompiled.h \ |
|||
src/rpc.h \ |
|||
src/balancestablemodel.h \ |
|||
src/3rdparty/qrcode/BitBuffer.hpp \ |
|||
src/3rdparty/qrcode/QrCode.hpp \ |
|||
src/3rdparty/qrcode/QrSegment.hpp \ |
|||
src/settings.h \ |
|||
src/txtablemodel.h \ |
|||
src/peerstablemodel.h \ |
|||
src/bannedpeerstablemodel.h \ |
|||
src/senttxstore.h \ |
|||
src/qrcodelabel.h \ |
|||
src/connection.h \ |
|||
src/fillediconlabel.h \ |
|||
src/addressbook.h \ |
|||
src/logger.h \ |
|||
src/addresscombo.h \ |
|||
src/validateaddress.h \ |
|||
src/recurring.h \ |
|||
src/requestdialog.h \ |
|||
src/memoedit.h \ |
|||
src/viewalladdresses.h |
|||
|
|||
FORMS += \ |
|||
src/mainwindow.ui \ |
|||
src/qrcode.ui \ |
|||
src/rescandialog.ui \ |
|||
src/settings.ui \ |
|||
src/about.ui \ |
|||
src/confirm.ui \ |
|||
src/privkey.ui \ |
|||
src/viewkey.ui \ |
|||
src/memodialog.ui \ |
|||
src/viewalladdresses.ui \ |
|||
src/validateaddress.ui \ |
|||
src/viewalladdresses.ui \ |
|||
src/connection.ui \ |
|||
src/addressbook.ui \ |
|||
src/viewalladdresses.ui \ |
|||
src/createhushconfdialog.ui \ |
|||
src/recurringdialog.ui \ |
|||
src/newrecurring.ui \ |
|||
src/requestdialog.ui |
|||
|
|||
|
|||
TRANSLATIONS = res-drgx/silentdragon_be.ts \ |
|||
res-drgx/silentdragon_bg.ts \ |
|||
res-drgx/silentdragon_de.ts \ |
|||
res-drgx/silentdragon_es.ts \ |
|||
res-drgx/silentdragon_fi.ts \ |
|||
res-drgx/silentdragon_fil.ts \ |
|||
res-drgx/silentdragon_fr.ts \ |
|||
res-drgx/silentdragon_hr.ts \ |
|||
res-drgx/silentdragon_id.ts \ |
|||
res-drgx/silentdragon_it.ts \ |
|||
res-drgx/silentdragon_nl.ts \ |
|||
res-drgx/silentdragon_pl.ts \ |
|||
res-drgx/silentdragon_pt.ts \ |
|||
res-drgx/silentdragon_ro.ts \ |
|||
res-drgx/silentdragon_ru.ts \ |
|||
res-drgx/silentdragon_sr.ts \ |
|||
res-drgx/silentdragon_tr.ts \ |
|||
res-drgx/silentdragon_uk.ts \ |
|||
res-drgx/silentdragon_zh.ts |
|||
|
|||
include(singleapplication/singleapplication.pri) |
|||
DEFINES += QAPPLICATION_CLASS=QApplication _FORTIFY_SOURCE=2 |
|||
|
|||
QMAKE_INFO_PLIST = res-drgx/Info.plist |
|||
|
|||
win32: RC_ICONS = res-drgx/icon.ico |
|||
ICON = res-drgx/logo.icns |
|||
|
|||
libsodium.target = $$PWD/res/libsodium.a |
|||
libsodium.commands = res/libsodium/buildlibsodium.sh |
|||
|
|||
QMAKE_EXTRA_TARGETS += libsodium |
|||
QMAKE_CLEAN += res/libsodium.a |
|||
|
|||
# Default rules for deployment. |
|||
qnx: target.path = /tmp/$${TARGET}/bin |
|||
else: unix:!android: target.path = /opt/$${TARGET}/bin |
|||
!isEmpty(target.path): INSTALLS += target |
|||
|
|||
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/res/ -llibsodium |
|||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/res/ -llibsodiumd |
|||
else:unix: LIBS += -L$$PWD/res/ -lsodium |
|||
|
|||
INCLUDEPATH += $$PWD/res |
|||
DEPENDPATH += $$PWD/res |
|||
|
|||
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/res/liblibsodium.a |
|||
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/res/liblibsodium.a |
|||
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/res/libsodium.lib |
|||
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/res/libsodiumd.lib |
|||
else:unix: PRE_TARGETDEPS += $$PWD/res/libsodium.a |
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue