First steps.
This commit is contained in:
@@ -3,118 +3,81 @@
|
||||
/* Alle QWidgets bekommen diesen Font */
|
||||
QWidget
|
||||
{
|
||||
font-size: 14px;
|
||||
font-family: Segoe UI, sans-serif;
|
||||
font-family: "Calibri", "Carlito", "Open Sans", sans-serif;
|
||||
font-size: 6pt;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
QMainWindow
|
||||
QToolButton
|
||||
{
|
||||
background-color: #272727;
|
||||
}
|
||||
background-color: white;
|
||||
color: #201F1E;
|
||||
border: 1px solid #8A8886;
|
||||
border-radius: 4px;
|
||||
|
||||
|
||||
min-width: 64px;
|
||||
max-width: 64px;
|
||||
min-height: 64px;
|
||||
max-height: 64px;
|
||||
|
||||
}
|
||||
|
||||
QToolButton:hover
|
||||
{
|
||||
background-color: #F3F2F1;
|
||||
border: 1px solid #323130;
|
||||
}
|
||||
|
||||
QToolButton:pressed
|
||||
{
|
||||
background-color: #EDEBE9;
|
||||
border: 1px solid #201F1E;
|
||||
}
|
||||
|
||||
QToolButton:disabled
|
||||
{
|
||||
background-color: #F3F2F1;
|
||||
color: #A19F9D;
|
||||
border: 1px solid #EDEBE9;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Spezifisches Styling für Buttons */
|
||||
QPushButton
|
||||
{
|
||||
background-color: #0078d7;
|
||||
color: white;
|
||||
/* === QToolButton === */
|
||||
QToolButton
|
||||
{
|
||||
background-color: transparent;
|
||||
color: #000000;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 6px;
|
||||
|
||||
min-width: 64px;
|
||||
max-width: 64px;
|
||||
min-height: 64px;
|
||||
max-height: 64px;
|
||||
}
|
||||
|
||||
QPushButton:hover
|
||||
QToolButton:hover
|
||||
{
|
||||
background-color: #F9F9F9;
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
QToolButton:pressed
|
||||
{
|
||||
background-color: #1084e3;
|
||||
background-color: #E0E0E0;
|
||||
}
|
||||
|
||||
QPushButton:pressed
|
||||
QToolButton:checked
|
||||
{
|
||||
background-color: #005a9e;
|
||||
background-color: #0078D4;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
/* Normal */
|
||||
QToolButton {
|
||||
background-color: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* Hover */
|
||||
QToolButton:hover {
|
||||
background-color: #E3F2FD;
|
||||
border: 1px solid #2196F3;
|
||||
}
|
||||
|
||||
/* Pressed/Clicked */
|
||||
QToolButton:pressed {
|
||||
background-color: #BBDEFB;
|
||||
}
|
||||
|
||||
/* Checked (bei checkable buttons) */
|
||||
QToolButton:checked {
|
||||
background-color: #2196F3;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Checked + Hover */
|
||||
QToolButton:checked:hover {
|
||||
background-color: #1976D2;
|
||||
}
|
||||
|
||||
/* Disabled */
|
||||
QToolButton:disabled {
|
||||
color: #BDBDBD;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/*
|
||||
QTableView
|
||||
{
|
||||
background-color: #404142;
|
||||
border-radius: 8px;
|
||||
outline: none;
|
||||
show-decoration-selected: 0;
|
||||
}
|
||||
|
||||
QTableView::item
|
||||
{
|
||||
border: 2px solid #2196F3;
|
||||
border-radius: 8px;
|
||||
padding: 8px;
|
||||
margin: 4px;
|
||||
background-color: white;
|
||||
}
|
||||
*/
|
||||
|
||||
QTableView::item:hover
|
||||
{
|
||||
border-color: #FF9800;
|
||||
background-color: #fff8f0;
|
||||
}
|
||||
|
||||
QTableView::item:selected
|
||||
{
|
||||
border-color: #F44336; /* Roter Rahmen */
|
||||
background-color: #ffebee;
|
||||
}
|
||||
|
||||
QTableView::item:selected:hover
|
||||
{
|
||||
border-color: #FF9800;
|
||||
background-color: #ffe0b2;
|
||||
}
|
||||
*/
|
||||
|
||||
QTableView::item:focus
|
||||
{
|
||||
/*
|
||||
// outline: none; Entfernt das Focus-Rectangle
|
||||
// border-color: green;
|
||||
// background-color: #ffe0b2;
|
||||
*/
|
||||
border: 2px solid gray;
|
||||
border-style: inset;
|
||||
background-color: white;
|
||||
color: black;
|
||||
}
|
||||
QToolButton:disabled
|
||||
{
|
||||
color: #A19F9D;
|
||||
}
|
||||
Reference in New Issue
Block a user