Skip to content

Commit

Permalink
fix: WebUI torrent title color when paused and highlighted in Light M…
Browse files Browse the repository at this point in the history
  • Loading branch information
tearfur committed Dec 31, 2023
1 parent f8f6806 commit 964bd31
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
27 changes: 17 additions & 10 deletions web/assets/css/transmission-app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
--color-border: var(--dark-mode-white);
--color-border-selected: var(--grey-500);
--color-fg-tertiary: var(--grey-500);
--color-fg-selected: var(--dark-mode-white);
--color-bg-selected: var(--default-accent-color-dark);
--color-default-border: var(--default-border-dark);
--color-progressbar-seed-1: var(--green-100);
Expand All @@ -128,6 +129,7 @@
--color-border-selected: var(--white);
--color-fg-tertiary: var(--white);
--color-toolbar-background: var(--black);
--color-fg-selected: var(--white);
--color-bg-selected: var(--blue-300);
--color-bg-tabs: var(--black);
--color-fg-tabs: var(--white);
Expand Down Expand Up @@ -165,6 +167,7 @@
--color-bg-warn: #e4606d5b;
--color-fg-warn: #cf212e;
--color-fg-disabled: var(--grey-500);
--color-fg-selected: var(--nice-grey);
--color-bg-selected: var(--blue-300);
--color-default-border: var(--default-border-light);
--color-dialog-border: var(--nice-grey);
Expand All @@ -188,6 +191,7 @@
--color-border-selected: var(--black);
--color-fg-tertiary: var(--black);
--color-toolbar-background: var(--white);
--color-fg-selected: var(--white);
--color-bg-selected: var(--blue-300);
--color-bg-tabs: var(--white);
--color-fg-tabs: var(--black);
Expand Down Expand Up @@ -499,10 +503,6 @@ a {
font-size: 1em;
font-weight: normal;
}

&:not(.paused) {
color: var(--color-fg-primary);
}
}

.torrent-labels {
Expand Down Expand Up @@ -535,7 +535,6 @@ a {

.torrent-progress-details,
.torrent-peer-details {
color: var(--color-fg-primary);
font-size: small;
}

Expand Down Expand Up @@ -584,12 +583,7 @@ a {
}

.torrent-name {
color: var(--color-fg-primary);
grid-area: name;

&.paused {
color: var(--color-fg-disabled);
}
}

.torrent-labels {
Expand All @@ -615,8 +609,21 @@ a {
}
}

&.paused {
color: var(--color-fg-disabled);

.icon {
background-color: var(--color-fg-disabled);
}
}

&.selected {
background-color: var(--color-bg-selected);
color: var(--color-fg-selected);

.icon {
background-color: var(--color-fg-selected);
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions web/src/torrent-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,11 @@ export class TorrentRendererFull {
render(controller, t, root) {
const is_stopped = t.isStopped();

root.classList.toggle('paused', is_stopped);

// name
let e = root._name_container;
setTextContent(e, t.getName());
e.classList.toggle('paused', is_stopped);

// labels
TorrentRendererHelper.formatLabels(t, root._labels_container);
Expand Down Expand Up @@ -332,9 +333,10 @@ export class TorrentRendererCompact {

// eslint-disable-next-line class-methods-use-this
render(controller, t, root) {
root.classList.toggle('paused', t.isStopped());

// name
let e = root._name_container;
e.classList.toggle('paused', t.isStopped());
setTextContent(e, t.getName());

// labels
Expand Down

0 comments on commit 964bd31

Please sign in to comment.