Skip to content

Commit d86f0ab

Browse files
committed
Fixed server device memory view header view for Dark theme
1 parent 17b9726 commit d86f0ab

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

examples/CMakePresets.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,33 +82,45 @@
8282
}
8383
],
8484
"buildPresets": [
85+
{
86+
"name": "Build-Base",
87+
"displayName": "Build Base",
88+
"hidden": true,
89+
"jobs": 10
90+
},
8591
{
8692
"name": "Win64-MSVC-Debug",
93+
"inherits": "Build-Base",
8794
"configurePreset": "Win64-MSVC",
8895
"configuration": "Debug"
8996
},
9097
{
9198
"name": "Win64-MSVC-Release",
99+
"inherits": "Build-Base",
92100
"configurePreset": "Win64-MSVC",
93101
"configuration": "Release"
94102
},
95103
{
96104
"name": "Win32-MSVC-Debug",
105+
"inherits": "Build-Base",
97106
"configurePreset": "Win32-MSVC",
98107
"configuration": "Debug"
99108
},
100109
{
101110
"name": "Win32-MSVC-Release",
111+
"inherits": "Build-Base",
102112
"configurePreset": "Win32-MSVC",
103113
"configuration": "Release"
104114
},
105115
{
106116
"name": "Linux-Debug",
117+
"inherits": "Build-Base",
107118
"configurePreset": "Linux-Debug",
108119
"configuration": "Debug"
109120
},
110121
{
111122
"name": "Linux-Release",
123+
"inherits": "Build-Base",
112124
"configurePreset": "Linux-Release",
113125
"configuration": "Release"
114126
}

src/server/gui/device/server_deviceui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,31 @@ mbServerDeviceUi::mbServerDeviceUi(mbServerDevice *device, QWidget *parent) :
5151
tbl->setItemDelegate(new mbServerDeviceUiDelegateBool(this));
5252
tbl->setSelectionMode(QAbstractItemView::ContiguousSelection);
5353
tbl->setAlternatingRowColors(true);
54-
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray }");
54+
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray; color:black }");
5555

5656
m_model_1x = new mbServerDeviceUiModel_1x(m_device, this);
5757
tbl = ui->tableView_1x;
5858
tbl->setModel(m_model_1x);
5959
tbl->setItemDelegate(new mbServerDeviceUiDelegateBool(this));
6060
tbl->setSelectionMode(QAbstractItemView::ContiguousSelection);
6161
tbl->setAlternatingRowColors(true);
62-
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray }");
62+
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray; color:black }");
6363

6464
m_model_3x = new mbServerDeviceUiModel_3x(m_device, this);
6565
tbl = ui->tableView_3x;
6666
tbl->setModel(m_model_3x);
6767
tbl->setItemDelegate(new mbServerDeviceUiDelegate(this));
6868
tbl->setSelectionMode(QAbstractItemView::ContiguousSelection);
6969
tbl->setAlternatingRowColors(true);
70-
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray }");
70+
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray; color:black }");
7171

7272
m_model_4x = new mbServerDeviceUiModel_4x(m_device, this);
7373
tbl = ui->tableView_4x;
7474
tbl->setModel(m_model_4x);
7575
tbl->setItemDelegate(new mbServerDeviceUiDelegate(this));
7676
tbl->setSelectionMode(QAbstractItemView::ContiguousSelection);
7777
tbl->setAlternatingRowColors(true);
78-
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray }");
78+
tbl->setStyleSheet("QHeaderView::section { background-color:lightgray; color:black }");
7979

8080
connect(ui->tabWidget, &QTabWidget::currentChanged, this, &mbServerDeviceUi::tabChanged);
8181
}

0 commit comments

Comments
 (0)