Skip to content

Commit

Permalink
- do not set text field to white in DialogAddDownload. Use UIManager …
Browse files Browse the repository at this point in the history
…default colors.
  • Loading branch information
derreisende77 committed Aug 21, 2024
1 parent 41956b4 commit 0ce2f36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# **14.2.0**
- **BUGFIX:** MV aktualisiert nun vor dem Download mittels `-dq` oder `--download-quit` Parameter die Filmliste.
- **BUGFIX:** FlatLaf Regression gelöst, die manchmal zu einer inkorrekten Darstellung der Oberfläche führte.
- **BUGFIX(Linux/macOS):** Im "Film Speichern"-Dialog wurde der Zielpfad im Dark Mode weiß dargestellt.
- **FEATURE(Linux/Windows):** Das Aussehen von FlatLaf kann in `.mediathek3/flatlaf` angepasst werden.
- **FEATURE:** Selektierte Einträge in `Suchhistorie bearbeiten`-Dialog können nun mittels Entfernen-Taste gelöscht werden.

Expand Down
7 changes: 4 additions & 3 deletions src/main/java/mediathek/gui/dialog/DialogAddDownload.java
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,11 @@ private void tus() {
//perform checks only when OS is not windows
if (!SystemUtils.IS_OS_WINDOWS) {
String s = cbPathTextComponent.getText();
final var editor = jComboBoxPfad.getEditor().getEditorComponent();
if (!s.equals(FilenameUtils.checkDateiname(s, true))) {
jComboBoxPfad.getEditor().getEditorComponent().setBackground(MVColor.DOWNLOAD_FEHLER.color);
editor.setBackground(MVColor.DOWNLOAD_FEHLER.color);
} else {
jComboBoxPfad.getEditor().getEditorComponent().setBackground(Color.WHITE);
editor.setBackground(UIManager.getColor("TextField.background"));
}
}
calculateAndCheckDiskSpace();
Expand Down Expand Up @@ -1063,7 +1064,7 @@ private void initComponents() {
.addContainerGap())
);

layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButtonAbbrechen, jButtonOk});
layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, jButtonAbbrechen, jButtonOk);

layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
Expand Down

0 comments on commit 0ce2f36

Please sign in to comment.