Prechádzať zdrojové kódy

improving visibility of config textedit and filedialog

logicp 5 rokov pred
rodič
commit
afdcf36344
2 zmenil súbory, kde vykonal 9 pridanie a 3 odobranie
  1. 6 2
      mainwindow.ui
  2. 3 1
      src/argdialog.cpp

+ 6 - 2
mainwindow.ui

@@ -665,8 +665,8 @@ font-weight: 700;</string>
          </property>
          <property name="minimumSize">
           <size>
-           <width>0</width>
-           <height>0</height>
+           <width>79</width>
+           <height>79</height>
           </size>
          </property>
          <property name="maximumSize">
@@ -740,6 +740,10 @@ opacity: 0.3;</string>
            <height>0</height>
           </size>
          </property>
+         <property name="styleSheet">
+          <string notr="true">color: #FFFFFF;
+font-weight: 700;</string>
+         </property>
         </widget>
        </item>
       </layout>

+ 3 - 1
src/argdialog.cpp

@@ -18,7 +18,9 @@ ArgDialog::ArgDialog(QWidget *parent) :
 {
     ui->setupUi(this);
     QObject::connect(ui->addFile, &QPushButton::clicked, this, [this]() {
-        auto file_path = QFileDialog::getOpenFileName(this,
+        QFileDialog file_dialog = QFileDialog(this);
+        file_dialog.setStyleSheet("QWidget { color: white; font-weight: 700}");
+        auto file_path = file_dialog.getOpenFileName(this,
                                                 tr("Open File"), "~", tr("All Files (*.*)"));
         qDebug() << "Selected file:" << file_path;
         if (file_path.size() > 0) {