Skip to content

Commit 5aae38e

Browse files
authored
Set ReadOnly QLineEdit the same as disabled text (#25)
1 parent 2f46710 commit 5aae38e

7 files changed

Lines changed: 35 additions & 0 deletions

File tree

‎Behave-dark/Behave-dark.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,11 @@ QDateTimeEdit:disabled {
13431343
border-color: #232932; /* same as enabled color */
13441344
}
13451345

1346+
QLineEdit[readOnly="true"] {
1347+
color: #565d68; /*#588AC1;*/
1348+
background-color: #232932; /* main background color */
1349+
}
1350+
13461351
QAbstractSpinBox:up-button,
13471352
QSpinBox:up-button,
13481353
QDoubleSpinBox:up-button,

‎Behave-dark_1_1_Plus/Behave-dark_1_1_Plus.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,11 @@ QDateTimeEdit:disabled {
13371337
border-color: @NearlyBlack; /* same as enabled color */
13381338
}
13391339

1340+
QLineEdit[readOnly="true"] {
1341+
color: #565d68; /*#588AC1;*/
1342+
background-color: #232932; /* main background color */
1343+
}
1344+
13401345
QAbstractSpinBox:up-button,
13411346
QSpinBox:up-button,
13421347
QDoubleSpinBox:up-button,

‎Dark-contrast/Dark-contrast.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,11 @@ QDateTimeEdit:disabled {
12471247
border-color: black; /* same as enabled color */
12481248
}
12491249

1250+
QLineEdit[readOnly="true"] {
1251+
color: #545454;
1252+
background-color: black; /* same as enabled color */
1253+
}
1254+
12501255
QAbstractSpinBox:up-button,
12511256
QSpinBox:up-button,
12521257
QDoubleSpinBox:up-button,

‎Dark-modern/Dark-modern.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,11 @@ QLineEdit:selected {
18181818
color: white;
18191819
}
18201820

1821+
QLineEdit[readOnly="true"] {
1822+
background-color: #696968;
1823+
color: #353535;
1824+
}
1825+
18211826
/* QTabWiget --------------------------------------------------------------
18221827

18231828
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

‎Darker/Darker.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,11 @@ QLineEdit:selected {
17961796
color: white;
17971797
}
17981798

1799+
QLineEdit[readOnly="true"] {
1800+
background-color: #696968;
1801+
color: #353535;
1802+
}
1803+
17991804
/* QTabWiget --------------------------------------------------------------
18001805

18011806
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

‎Light-modern/Light-modern.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,11 @@ QLineEdit:selected {
18021802
color: black;
18031803
}
18041804

1805+
QLineEdit[readOnly="true"] {
1806+
background-color: #f6f6f6;
1807+
color: #515151;
1808+
}
1809+
18051810
/* QTabWiget --------------------------------------------------------------
18061811

18071812
https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

‎ProDark/ProDark.qss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,11 @@ QDateTimeEdit:disabled {
13401340
border-color: #2a2a2a; /* same as enabled color */
13411341
}
13421342

1343+
QLineEdit[readOnly="true"] {
1344+
color: #f5f5f5;
1345+
background-color: #2a2a2a;;
1346+
}
1347+
13431348
QAbstractSpinBox:up-button,
13441349
QSpinBox:up-button,
13451350
QDoubleSpinBox:up-button,

0 commit comments

Comments
 (0)