mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Icons, mainly for new launcher ( refs #507 )
Adjusted style sheets (qss) and resource files
This commit is contained in:
committed by
Mathew Sutcliffe
parent
06343c36bf
commit
63e1695e3b
@@ -29,7 +29,7 @@ QMainWindow::separator:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/** Main window **/
|
||||
/** Dialog, sometime main window **/
|
||||
QDialog {
|
||||
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
||||
background-color: darkslategray;
|
||||
@@ -113,27 +113,23 @@ BlackGui--Editors--CValidationIndicator {
|
||||
|
||||
/** default for buttons **/
|
||||
QPushButton {
|
||||
/** background-image: url(:/textures/icons/textures/texture-inner.jpg); **/
|
||||
/** need to fix pressed button first **/
|
||||
background: black;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-radius:6px;
|
||||
border-color: green;
|
||||
max-height:20px;
|
||||
background-color: rgba(0, 0, 255, 128);
|
||||
border-style: 1px solid yellow;
|
||||
border-radius:3px;
|
||||
color: yellow;
|
||||
padding: 0px;
|
||||
margin-right: 5px;
|
||||
min-width:60px;
|
||||
min-height:20px;
|
||||
}
|
||||
|
||||
QPushButton::disabled {
|
||||
background-color: grey;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-radius:6px;
|
||||
border-color: green;
|
||||
max-height:20px;
|
||||
min-width:60px;
|
||||
min-height:20px;
|
||||
border-style: none;
|
||||
border-radius:3px;
|
||||
color: white;
|
||||
padding: 0px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
QProgressBar {
|
||||
@@ -215,6 +211,7 @@ QLabel {
|
||||
|
||||
QToolButton {
|
||||
background-color: transparent; /* transparent tool buttons */
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
QLineEdit {
|
||||
@@ -269,6 +266,10 @@ QToolBox::tab::selected {
|
||||
background-color: rgba(0, 0, 255, 128);
|
||||
}
|
||||
|
||||
QToolBox::tab::!selected {
|
||||
background-color: rgba(0, 0, 255, 48);
|
||||
}
|
||||
|
||||
/** no border on page */
|
||||
QToolBox > QWidget {
|
||||
border: 0px;
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
QFrame#fr_InfoWindow {
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-radius: 10px;
|
||||
border-color: white;
|
||||
background-color: rgba(0,0,0,200);
|
||||
}
|
||||
|
||||
QStackedWidget {
|
||||
font-family: arial-rounded;
|
||||
font: bold 10px;
|
||||
color: white; /** font not in text edit **/
|
||||
}
|
||||
|
||||
QPushButton {
|
||||
background-color: transparent;
|
||||
border-style: solid;
|
||||
border-width: 0px;
|
||||
border-radius:3px;
|
||||
border-color: green;
|
||||
max-height:20px;
|
||||
}
|
||||
|
||||
QTextEdit {
|
||||
background-color: rgba(255, 255, 0, 240); /* transparent yellow */
|
||||
border-style: solid;
|
||||
border-width:1px;
|
||||
border-radius:6px;
|
||||
border-color: green;
|
||||
opacity: 0.5;
|
||||
color: black; /** font **/
|
||||
}
|
||||
@@ -1,10 +1,3 @@
|
||||
#le_CommandLineInput {
|
||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||
margin-bottom: 5px;
|
||||
padding: 3px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#comp_Log {
|
||||
background: transparent; /** background is background color here **/
|
||||
}
|
||||
|
||||
18
src/blackgui/qss/swiftlauncher.qss
Normal file
18
src/blackgui/qss/swiftlauncher.qss
Normal file
@@ -0,0 +1,18 @@
|
||||
/** special effects for start buttons **/
|
||||
#pg_Start QToolButton {
|
||||
border: 1px solid green;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#pg_Start QToolButton:hover {
|
||||
border: 5px solid green;
|
||||
border-radius: 5px;
|
||||
min-width: 30px;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
#pg_start QToolTip {
|
||||
color: #ffffff;
|
||||
background-color: #2a82da;
|
||||
border: 1px solid white;
|
||||
}
|
||||
@@ -52,15 +52,6 @@ QAbstractScrollArea #pg_StatusPageCons ole { background-color: black; }
|
||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||
}
|
||||
|
||||
#sw_MainMiddle QPushButton {
|
||||
background-color: rgba(0, 0, 255, 128);
|
||||
border-style: none;
|
||||
border-radius:3px;
|
||||
color: yellow;
|
||||
padding: 0px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/** close button with frameless windows **/
|
||||
#pb_FramelessCloseButton {
|
||||
background: transparent;
|
||||
@@ -79,23 +70,20 @@ QAbstractScrollArea #pg_StatusPageCons ole { background-color: black; }
|
||||
}
|
||||
|
||||
#wi_MainKeypadArea QPushButton {
|
||||
/** background-image: url(:/textures/icons/textures/texture-inner.jpg); **/
|
||||
/** need to fix pressed button first **/
|
||||
background: black;
|
||||
background-color: black;
|
||||
color: white;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-radius:6px;
|
||||
border-color: green;
|
||||
max-height:20px;
|
||||
min-width:60px;
|
||||
min-width: 60px;
|
||||
min-height:20px;
|
||||
}
|
||||
|
||||
#wi_MainKeypadArea QPushButton::checked {
|
||||
/** background-image: url(:/textures/icons/textures/texture-inner.jpg); **/
|
||||
/** need to fix pressed button first **/
|
||||
border-style: solid;
|
||||
border-color: yellow;
|
||||
border-color: green;
|
||||
font: bold;
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
@@ -263,12 +263,6 @@ namespace BlackGui
|
||||
return f;
|
||||
}
|
||||
|
||||
const QString &CStyleSheetUtility::fileNameInfoWindow()
|
||||
{
|
||||
static const QString f("stylesheetinfo.qss");
|
||||
return f;
|
||||
}
|
||||
|
||||
const QString &CStyleSheetUtility::fileNameTextMessage()
|
||||
{
|
||||
static const QString f("textmessage.css");
|
||||
@@ -293,6 +287,12 @@ namespace BlackGui
|
||||
return f;
|
||||
}
|
||||
|
||||
const QString &CStyleSheetUtility::fileNameSwiftLauncher()
|
||||
{
|
||||
static const QString f("swiftlauncher.qss");
|
||||
return f;
|
||||
}
|
||||
|
||||
const QString &CStyleSheetUtility::fileNameIniFile()
|
||||
{
|
||||
static const QString f("gui.ini");
|
||||
|
||||
@@ -78,9 +78,6 @@ namespace BlackGui
|
||||
//! File name for standard widgets
|
||||
static const QString &fileNameStandardWidget();
|
||||
|
||||
//! File name maininfoarea.qss
|
||||
static const QString &fileNameInfoWindow();
|
||||
|
||||
//! File name textmessage.qss
|
||||
static const QString &fileNameTextMessage();
|
||||
|
||||
@@ -96,6 +93,9 @@ namespace BlackGui
|
||||
//! File name swiftcore.qss
|
||||
static const QString &fileNameSwiftData();
|
||||
|
||||
//! File name swiftlauncher.qss
|
||||
static const QString &fileNameSwiftLauncher();
|
||||
|
||||
//! File name ini file
|
||||
static const QString &fileNameIniFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user