Ver código fonte

modified: resources/style.qss

Satoshi Yoneda 2 semanas atrás
pai
commit
13b1f280c2
4 arquivos alterados com 25 adições e 4 exclusões
  1. 2 2
      debian/copyright
  2. 1 1
      debian/rules
  3. 20 0
      resources/style.qss
  4. 2 1
      src/ResultItemDelegate.cpp

+ 2 - 2
debian/copyright

@@ -3,11 +3,11 @@ Upstream-Name: DupFind
 Source: https://github.com/satoyon/DupFind
 
 Files: *
-Copyright: 2026 Satoyon
+Copyright: 2026 Satoshi Yoneda with Antigravity
 License: MIT
 
 Files: debian/*
-Copyright: 2026 Satoyon
+Copyright: 2026 Satoshi Yoneda with Antigravity
 License: MIT
 
 License: MIT

+ 1 - 1
debian/rules

@@ -4,4 +4,4 @@
 	dh $@
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release
+	dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DUSE_NATIVE_OPTIMIZATION=1

+ 20 - 0
resources/style.qss

@@ -101,3 +101,23 @@ QSlider::groove:horizontal {
     background: #333333;
     margin: 2px 0;
 }
+
+/* QListView and Checkbox visibility fixes */
+QListView {
+    background-color: #1e1e1e;
+    color: #e0e0e0;
+    border: none;
+}
+
+QListView::item {
+    color: #e0e0e0;
+}
+
+QCheckBox {
+    color: #e0e0e0;
+}
+
+QCheckBox::indicator {
+    width: 18px;
+    height: 18px;
+}

+ 2 - 1
src/ResultItemDelegate.cpp

@@ -86,6 +86,7 @@ void ResultItemDelegate::paint(QPainter *painter,
       QStyleOptionButton cbOpt;
       cbOpt.rect = cbRect;
       cbOpt.text = tr("Delete candidate");
+      cbOpt.palette = option.palette;
       cbOpt.state = QStyle::State_Enabled;
       if (model->isChecked(imgData.path)) {
         cbOpt.state |= QStyle::State_On;
@@ -105,7 +106,7 @@ void ResultItemDelegate::paint(QPainter *painter,
       QFont font = painter->font();
       font.setPixelSize(10);
       painter->setFont(font);
-      painter->setPen(QColor("#666666"));
+      painter->setPen(QColor("#aaaaaa"));
       painter->drawText(textRect,
                         Qt::AlignTop | Qt::AlignLeft | Qt::TextWordWrap, info);
       painter->restore();