diff --git a/autotag_metadata/app.py b/autotag_metadata/app.py index 591f26e..0b03b02 100644 --- a/autotag_metadata/app.py +++ b/autotag_metadata/app.py @@ -196,10 +196,10 @@ def validate_yaml(self): # config.YamlLintConfig(content=yaml_config_str)) yaml_error = linter.get_syntax_error(self.yamlText.toPlainText()) if yaml_error is None: - self.yamlText.setStyleSheet("background-color: rgb(255, 255, 255);") + self.yamlText.setStyleSheet("background-color: rgb(144, 238, 144);") return True else: - self.yamlText.setStyleSheet("background-color: rgb(85, 85, 127);") + self.yamlText.setStyleSheet("background-color: rgb(255, 106, 106);") return False def act_on_yaml_change(self): @@ -367,14 +367,14 @@ def enable_activate(self): def toggle_watch(self): """Toggle folder watching""" if self.btnActivate.isChecked(): - self.ledFilePattern.setDisabled(True) + self.ledFilePatterns.setDisabled(True) if self.watch_directory: # create new instance of watcher potential - if self.ledFilePattern.text() == "": + if self.ledFilePatterns.text() == "": patterns = None else: patterns = [ - p.strip() for p in self.ledFilePattern.text().split(",") + p.strip() for p in self.ledFilePatterns.text().split(",") ] self.file_monitor = FileMonitor(patterns=patterns) self.thread = QtCore.QThread(self) @@ -395,7 +395,7 @@ def toggle_watch(self): elif not self.btnActivate.isChecked(): self.btnActivate.setText("Activate") self.file_monitor.observer.stop() - self.ledFilePattern.setEnabled(True) + self.ledFilePatterns.setEnabled(True) logger.info("stop watching %s", self.watch_directory) def file_created(self, msg): diff --git a/autotag_metadata/ui/main_window.ui b/autotag_metadata/ui/main_window.ui index a434c8a..b3d8191 100644 --- a/autotag_metadata/ui/main_window.ui +++ b/autotag_metadata/ui/main_window.ui @@ -18,12 +18,12 @@ - QLayout::SetNoConstraint + QLayout::SizeConstraint::SetNoConstraint - QTabWidget::Rounded + QTabWidget::TabShape::Rounded 0 @@ -50,11 +50,10 @@ 0 0 1122 - 519 + 501 - - + @@ -80,7 +79,7 @@ - QAbstractScrollArea::AdjustIgnored + QAbstractScrollArea::SizeAdjustPolicy::AdjustIgnored @@ -97,7 +96,7 @@ 6 - 6 + 6 @@ -116,18 +115,18 @@ - - - Use - - - true - - - false - - - + + + Use + + + true + + + false + + + @@ -140,10 +139,10 @@ - 6 + 6 - 6 + 6 @@ -154,6 +153,9 @@ + + Valid folder name to watch + @@ -167,19 +169,22 @@ - - - File Pattern - - - - - - - - - - + + + File Patterns + + + + + + + Comma-separated list, example: *.csv,*.tsv + + + + + + @@ -243,7 +248,7 @@ 0 0 1166 - 22 + 23