Files
SilentDragonXLite/res/css/dragonx.css
DanS cc34cc3f21 Add clean shutdown, wallet safety, and UI contrast fixes
Shutdown:
- Call litelib_shutdown() to stop Rust background threads on exit
- Add 15-second timeout on wallet save dialog to prevent hang on close
- Add litelib_shutdown FFI declaration in header and controller

UI Contrast (dragonx theme):
- Fix disabled buttons: white text was invisible on white background
- Add QWizard, QMessageBox, QTextBrowser, QPlainTextEdit styling for dark theme
- Add QCheckBox, QRadioButton, QDialogButtonBox contrast rules
- Fix seed word verification buttons: dark themed with explicit text color
- Fix chat bubbles: replace light backgrounds with dark themed colors
- Fix Terms of Service link color: #0000ff -> #6699ff for visibility
- Remove duplicate conflicting QLabel#lblMessage CSS rule

Add v1.1.0 release notes with checksums
2026-03-21 05:39:19 -05:00

596 lines
13 KiB
CSS

/*
colors
background: rgb(24, 12, 12)
object-background: #45505e
object-background-hover: #1f242b
object-background-press: #0c0e11
text-main: white
text-secondary: rgba(255, 255, 255, 0.75)
text-dark: rgb(24, 12, 12)
border: rgb(216, 38, 82)
*/
QWidget, QMainWindow, QMenuBar, QMenu, QDialog, QTabWidget, QTableView, QScrollArea, QGroupBox, QPlainTextEdit, QLineEdit, QLabel, MainWindow {
color: white;
border: 0px solid rgba(0, 0, 0, 0);
background-color: rgb(24, 21, 21);
}
/* window menu options */
QMenu {
color: white;
border: 1px solid rgba(216, 38, 82, .5);
border-radius: 8px;
background-color: rgba(24, 21, 21, 1);
}
QMenuBar {
color: rgb(216, 38, 82);
color: white;
}
QMenuBar::item {
color: rgb(216, 38, 82);
color: white;
}
#title {
margin-bottom: 8px;
}
QTabWidget QTabBar {
background-color: rgba(41, 21, 21, .25);
width: 600px;
}
QTabWidget QTabBar::tab {
margin: 12px 4px;
padding: 6px 4px;
font-size: 20px;
border: 0px solid white;
border-radius: 9px;
background-color: rgba(41, 21, 21, 1);
min-width: 130px;
}
QTabWidget QTabBar::tab::last {
min-width: 280px;
}
QTabWidget QTabBar::tab:selected {
color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(216, 38, 82, 0.85);
background-color: rgba(216, 38, 82, 0.25);
}
QTabWidget QTabBar::tab:hover {
color: white;
border: 1px solid rgba(216, 38, 82, 1);
background-color: rgba(216, 38, 82, 0.4);
}
QHeaderView {
/* Table Header */
background-color: rgba(0, 0, 0, 0);
}
QHeaderView::section {
/* Table Header Sections */
/* qproperty-alignment:center; */
min-height:25px;
outline:0;
padding-left:5px;
padding-right:5px;
padding-top:2px;
padding-bottom:2px;
color:#91a4b8;
font-weight:bold;
font-size:11px;
border:1px solid rgb(41, 21, 21);
border-right:1px solid #91a4b8;
border-left:1px solid #91a4b8;
}
QTabBar {
margin-bottom: 16px;
}
QLabel {
color: rgba(255, 255, 255, 0.75);
border: 0px solid rgba(255, 255, 255, 0);
background-color: rgba(255, 255, 255, 0);
}
QLineEdit {
padding: 2px 4px;
color: white;
border: 1px solid rgb(216, 38, 82);
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
background-color: rgba(41, 21, 21, 0.75);
}
QGroupBox{
padding: 12px;
padding-top: 32px;
background-color: rgba(24, 12, 12, 0.45);
border: 1px solid rgba(216, 38, 82, 0.6);
border-radius: 8px;
font-size: 18px;
}
QGroupBox::title {
padding: 4px 12px;
color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(216, 38, 82, 0.25);
border-top-left-radius: 8px;
border-bottom-right-radius: 8px;
background-color: rgba(216, 38, 82, 0.05);
}
QGroupBox#groupBox QLabel {
font-size: 16px;
}
QPushButton {
padding: 6px 10px;
color: rgba(255, 255, 255, 0.5);
border: 1px solid rgba(216, 38, 82, 0.5);
border-radius: 4px;
background-color: rgba(216, 38, 82, 0.15);
font-size: 16px;
}
QPushButton:hover {
color: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(216, 38, 82, 0.55);
background-color: rgba(216, 38, 82, 0.45);
}
QPushButton:selected {
color: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(216, 38, 82, 0.75);
background-color: rgba(216, 38, 82, 0.75);
}
QPushButton:disabled {
color: rgba(255, 255, 255, 0.35);
border: 1px solid rgba(216, 38, 82, 0.15);
background-color: rgba(41, 21, 21, 0.5);
}
QComboBox{
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.75);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.5);
}
QScrollArea#sendToScrollArea QWidget {
border: 0px solid rgb(216, 38, 82, 0);
background-color: rgba(24, 12, 12, 0.45);
}
QScrollBar {
border: 0px solid rgba(216, 38, 82, 0);
background-color: rgba(24, 12, 12, 0);
}
QScrollBar:vertical {
width: 22px;
margin: 0 2px;
border: 2px solid rgba(216, 38, 82, 0);
background-color: rgba(0, 0, 0 , 0);
}
QScrollBar::handle:vertical,
QScrollBar::handle:horizontal {
border: 1px solid rgba(216, 38, 82, 1);
border-radius: 6px;
background-color: rgba(216, 38, 82, 0.25);
}
QScrollBar::handle:vertical {
border-radius: 6px;
}
QScrollBar::add-line {
height: 0px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line {
height: 0px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::add-page, QScrollBar::sub-page {
background: none;
}
QComboBox QAbstractItemView {
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.75);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.5);
selection-background-color: rgb(118, 132, 153);
}
QComboBox QAbstractItemView::item{
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.25);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.5);
outline: none;
}
QComboBox QAbstractItemView::item:selected{
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.75);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.5);
outline:none;
}
QComboBox QAbstractItemView::item:hover {
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.75);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.75);
outline:none;
}
QListView{
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.75);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.5);
}
/* TAB 1 - HUSHCHAT */
/* chat window */
QListView#listChat,
QListView#listContactWidget {
border-radius: 8px;
border: 1px solid rgba(216, 38, 82, 0.5);
background-color: rgba(216, 38, 82, 0.05);
}
QPushButton#emojiButton,
QPushButton#pushContact,
QPushButton#safeContactRequest,
QPushButton#givemeZaddr,
QPushButton#sendChatButton {
border-radius: 4px;
}
QLabel#lblMessage {
color: white;
border: 1px solid rgba(216, 38, 82, 0.5);
background-color: rgba(216, 38, 82, 0.05);
}
/* SEND TAB */
QWidget#tab_2 QLabel{
border: 0px solid white;
background-color: rgba(255, 255, 255, 0);
}
/* MEMO */
QWidget#tab_2 QLabel#MemoTxt1,
QWidget#tab_2 QLabel#MemoTxt2,
QWidget#tab_2 QLabel#MemoTxt3,
QWidget#tab_2 QLabel#MemoTxt4,
QWidget#tab_2 QLabel#MemoTxt5,
QWidget#tab_2 QLabel#MemoTxt6 {
border: 1px solid rgba(216, 38, 82, 0.25);
background-color: rgba(24, 12, 12, 0.25);
border-radius: 4px;
padding: 4px 2px;
}
QWidget#tab_2 QLineEdit {
border: 1px solid rgb(216, 38, 82);
padding: 2px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
background-color: rgba(24, 12, 12, 0.75);
}
/* From Section */
/* drop down address menu */
AddressCombo {
margin: 0;
padding: 2px 4px;
border: 1px solid rgba(216, 38, 82, 0.75);
border-radius: 2px;
background-color: rgba(24, 12, 12, 0.5);
}
/* Send To Section */
/* Recipient sub-section */
QWidget#tab_2 QGroupBox{
border: 1px solid rgba(216, 38, 82, 0.5);
border-radius: 4px;
background-color: rgba(216, 38, 82, 0.1);
}
QWidget#tab_2 QGroupBox::title {
margin-left: 24px;
font-size: 6px;
border-radius: 0;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
/* To Section */
QWidget#tab_2 QGroupBox#groupBox_3,
QWidget#tab_2 QGroupBox#groupBox_4 {
border: 1px solid rgba(216, 38, 82, 0.6);
border-radius: 8px;
background-color: rgba(24, 12, 12, 0.45);
}
QWidget#tab_2 QGroupBox#groupBox_3::title,
QWidget#tab_2 QGroupBox#groupBox_4::title {
border-radius: 0;
border-top-left-radius: 8px;
border-bottom-right-radius: 8px;
margin: 0;
}
/* Max Available */
QCheckBox#Max1 {
padding: 4px;
border-radius: 4px;
background-color: rgba(24, 12, 12, 0.25);
}
QCheckBox#Max1:hover {
border: 1px solid rgba(216, 38, 82, 0.25);
background-color: rgba(216, 38, 82, 0.25);
}
QCheckBox#Max1:pressed,
QCheckBox#Max1:checked {
border: 1px solid rgba(216, 38, 82, 0.75);
background-color: rgba(216, 38, 82, 0.5);
color: white;
}
QLabel#AmtUSD1,
QLabel#txtAvailableUSD {
border: 0px solid rgba(216, 38, 82, 0.25);
background-color: rgba(255, 255, 255, 0.15);
border-radius: 2px;
}
QWidget#tab_2 QGroupBox#groupBox_4 {
height: 12px;
padding: 0;
margin: 0;
border: 1px solid rgba(216, 38, 82, 0.25);
color: white;
}
QWidget#tab_2 QPushButton {
color: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(216, 38, 82, 0.25);
background-color: rgba(216, 38, 82, 0.25);
}
QWidget#tab_2 QPushButton:hover {
color: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(216, 38, 82, 0.55);
background-color: rgba(216, 38, 82, 0.45);
}
QWidget#tab_2 QPushButton:selected {
color: rgba(255, 255, 255, 1);
border: 1px solid rgba(216, 38, 82, 0.75);
background-color: rgba(216, 38, 82, 0.5);
}
QWidget#tab_2 QPushButton:disabled {
color: rgba(24, 12, 12, 0.75);
border: 1px solid rgba(216, 38, 82, 0.05);
background-color: rgba(255, 255, 255, 0.15);
}
QTableView {
/* Table - has to be selected as a class otherwise it throws off QCalendarWidget */
qproperty-showGrid: "false";
padding-right: 8px;
color: rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 0);
}
QTableView QTableCornerButton::section {
border: 0px solid rgba(0, 0, 0, 0);
background-color:rgba(0, 0, 0, 0);
}
QTableView::item {
/* Table Item */
padding: 2px;
color: white;
font-size:12px;
border: 1px solid rgba(216, 38, 82, .5);
background-color:rgba(216, 38, 82, 0.25);
}
QTableView::item:selected {
/* Table Item Selected */
margin: 4px 0;
color:rgb(41, 21, 21);
border: 1px solid rgba(216, 38, 82, .75);
background-color:rgba(216, 38, 82, 0.5);
}
QTableView { outline:none; }
QTableView#balancesTable {
/* background-color: rgba(255, 255, 255, 0); */
}
QTableView#balancesTable::item {
/* background-color: rgba(255, 255, 255, 0); */
border: 1px solid rgba(216, 38, 82, 0.25);
}
QHeaderView::section {
border: 1px solid rgba(216, 38, 82, 0.5);
background-color: rgba(0, 0, 0, 0);
}
QHeaderView::section::first {
border-top-left-radius: 10px;
background-color: rgb(41, 21, 21);
}
QHeaderView::section::middle {
background-color: rgb(41, 21, 21);
}
QHeaderView::section::last {
border: 1px solid rgba(216, 38, 82, 0.5);
border-top-right-radius: 10px;
background-color: rgb(41, 21, 21);
}
QHeaderView::section::vertical {
border: 0px solid rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 0);
}
QDialog#requestDialog {
min-width: 820;
min-height: 520;
}
QDialog#requestDialog QLabel#label_8
{
min-height: 25;
padding-top: 7px;
}
QDialog#requestDialog QLabel#label_7{
padding-left: 2px;
min-height: 25;
}
QDialog#requestDialog QLabel#label_5,
QDialog#requestDialog QLabel#label_6 {
min-height: 25;
padding-top: 2px;
}
QDialog#requestDialog QPushButton {
min-height: 32;
}
QDialog#requestDialog QPushButton#addContact {
min-width: 150px;
}
/* ===== SETUP WIZARD & DIALOG CONTRAST FIXES ===== */
QWizard, QWizardPage {
color: white;
background-color: rgb(24, 21, 21);
}
QWizard QLabel, QWizardPage QLabel {
color: rgba(255, 255, 255, 0.85);
}
QWizard QPushButton, QWizardPage QPushButton {
color: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(216, 38, 82, 0.5);
background-color: rgba(216, 38, 82, 0.15);
}
QWizard QPushButton:hover, QWizardPage QPushButton:hover {
color: white;
border: 1px solid rgba(216, 38, 82, 0.75);
background-color: rgba(216, 38, 82, 0.45);
}
QTextBrowser, QPlainTextEdit, QTextEdit {
color: white;
border: 1px solid rgba(216, 38, 82, 0.5);
background-color: rgba(41, 21, 21, 0.75);
}
QCheckBox {
color: rgba(255, 255, 255, 0.85);
}
QCheckBox::indicator {
border: 1px solid rgba(216, 38, 82, 0.75);
background-color: rgba(41, 21, 21, 0.5);
}
QCheckBox::indicator:checked {
background-color: rgba(216, 38, 82, 0.75);
}
QRadioButton {
color: rgba(255, 255, 255, 0.85);
}
QDialogButtonBox QPushButton {
color: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(216, 38, 82, 0.5);
background-color: rgba(216, 38, 82, 0.15);
min-width: 80px;
padding: 6px 16px;
}
QDialogButtonBox QPushButton:hover {
color: white;
border: 1px solid rgba(216, 38, 82, 0.75);
background-color: rgba(216, 38, 82, 0.45);
}
QMessageBox {
color: white;
background-color: rgb(24, 21, 21);
}
QMessageBox QLabel {
color: white;
}