Commit 0be75f69 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

trying to fix the min button

parent 7e089769
......@@ -104,19 +104,27 @@ ChannelListWidget::ChannelListWidget(QWidget *parent)
m_state = full;
QIcon myIcon = QApplication::style()->standardIcon(QStyle::SP_TitleBarMinButton);
auto avalSize = myIcon.availableSizes();
for (auto& singleSize : avalSize) {
QImage tempImage = myIcon.pixmap(singleSize).toImage();
tempImage.invertPixels();
m_minIcon.addPixmap(QPixmap::fromImage(std::move(tempImage)));
for (auto singleMode : { QIcon::Normal,QIcon::Disabled,QIcon::Active,QIcon::Selected }) {
for (auto singleState : { QIcon::On,QIcon::Off }) {
const auto avalSize = myIcon.availableSizes(singleMode, singleState);
for (auto& singleSize : avalSize) {
QImage tempImage = myIcon.pixmap(singleSize).toImage();
tempImage.invertPixels();
m_minIcon.addPixmap(QPixmap::fromImage(std::move(tempImage)), singleMode, singleState);
}
}
}
myIcon = QApplication::style()->standardIcon(QStyle::SP_TitleBarMaxButton);
avalSize = myIcon.availableSizes();
for (auto& singleSize : avalSize) {
QImage tempImage = myIcon.pixmap(singleSize).toImage();
tempImage.invertPixels();
m_maxIcon.addPixmap(QPixmap::fromImage(std::move(tempImage)));
for (auto singleMode : { QIcon::Normal,QIcon::Disabled,QIcon::Active,QIcon::Selected }) {
for (auto singleState : { QIcon::On,QIcon::Off }) {
const auto avalSize = myIcon.availableSizes(singleMode, singleState);
for (auto& singleSize : avalSize) {
QImage tempImage = myIcon.pixmap(singleSize).toImage();
tempImage.invertPixels();
m_maxIcon.addPixmap(QPixmap::fromImage(std::move(tempImage)), singleMode, singleState);
}
}
}
setAttribute(Qt::WA_TranslucentBackground);
......
QTreeWidget {
QTreeWidget, * {
border-style:none;
background-color:rgba(0,0,0,0);
color:rgb(255,255,255);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment