Skip to content

Commit

Permalink
fix(storage): top process arrows custom colors
Browse files Browse the repository at this point in the history
fix #115
  • Loading branch information
ljuzig committed Apr 22, 2024
1 parent e79d085 commit 76fce65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Astra Monitor 22 - TO BE RELEASED

### Bug fixes

- Arrow colors in Storage Top Processes popup wasn't following menu's color settings [[#115](https://github.com/AstraExt/astra-monitor/issues/115)]

# Astra Monitor 21 - April 19 2024

### Bug fixes
Expand Down
10 changes: 8 additions & 2 deletions src/storage/storageMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,10 @@ export default class StorageMenu extends MenuBase {

popupElement.read.container.show();
if(read > 0) {
popupElement.read.icon.style = 'color:rgb(29,172,214);';
const readColor =
Config.get_string('storage-menu-arrow-color1') ??
'rgba(29,172,214,1.0)';
popupElement.read.icon.style = `color:${readColor};`;
popupElement.read.value.text = Utils.formatBytesPerSec(
read,
unit as any,
Expand All @@ -1386,7 +1389,10 @@ export default class StorageMenu extends MenuBase {

popupElement.write.container.show();
if(write > 0) {
popupElement.write.icon.style = 'color:rgb(214,29,29);';
const writeColor =
Config.get_string('storage-menu-arrow-color2') ??
'rgba(214,29,29,1.0)';
popupElement.write.icon.style = `color:${writeColor};`;
popupElement.write.value.text = Utils.formatBytesPerSec(
write,
unit as any,
Expand Down

0 comments on commit 76fce65

Please sign in to comment.