diff --git a/CHANGELOG.md b/CHANGELOG.md index 02fda737..ad6da66a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [v4.5.1] +### Changed +- Add a basic system tray icon with crappy status for dGPU ## [v4.5.0] ### Added diff --git a/Makefile b/Makefile index aec1bcf1..1fd72200 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,10 @@ install: $(INSTALL_DATA) "./data/icons/asus_notif_yellow.png" "$(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/asus_notif_yellow.png" $(INSTALL_DATA) "./data/icons/asus_notif_green.png" "$(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/asus_notif_green.png" + $(INSTALL_DATA) "./data/icons/asus_notif_blue.png" "$(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/asus_notif_blue.png" $(INSTALL_DATA) "./data/icons/asus_notif_red.png" "$(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/asus_notif_red.png" + $(INSTALL_DATA) "./data/icons/asus_notif_orange.png" "$(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/asus_notif_orange.png" + $(INSTALL_DATA) "./data/icons/asus_notif_white.png" "$(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/asus_notif_white.png" $(INSTALL_DATA) "./data/icons/scalable/gpu-compute.svg" "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/status/gpu-compute.svg" $(INSTALL_DATA) "./data/icons/scalable/gpu-hybrid.svg" "$(DESTDIR)$(datarootdir)/icons/hicolor/scalable/status/gpu-hybrid.svg" diff --git a/README.md b/README.md index c20b3640..7b97605b 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Requirements are rust >= 1.57 installed from rustup.io if the distro provided ve **fedora:** - dnf install clang-devel systemd-devel cargo + dnf install cmake clang-devel systemd-devel gtk3-devel make sudo make install diff --git a/data/icons/asus_notif_blue.png b/data/icons/asus_notif_blue.png index fb4ebce3..379ec095 100644 Binary files a/data/icons/asus_notif_blue.png and b/data/icons/asus_notif_blue.png differ diff --git a/data/icons/asus_notif_green.png b/data/icons/asus_notif_green.png index 3987ffa5..983ebc7d 100644 Binary files a/data/icons/asus_notif_green.png and b/data/icons/asus_notif_green.png differ diff --git a/data/icons/asus_notif_orange.png b/data/icons/asus_notif_orange.png index c109a830..2ea584c1 100644 Binary files a/data/icons/asus_notif_orange.png and b/data/icons/asus_notif_orange.png differ diff --git a/data/icons/asus_notif_red.png b/data/icons/asus_notif_red.png index 776e9edd..acf2271e 100644 Binary files a/data/icons/asus_notif_red.png and b/data/icons/asus_notif_red.png differ diff --git a/data/icons/asus_notif_white.png b/data/icons/asus_notif_white.png index 29599d5e..42816dc3 100644 Binary files a/data/icons/asus_notif_white.png and b/data/icons/asus_notif_white.png differ diff --git a/data/icons/asus_notif_yellow.png b/data/icons/asus_notif_yellow.png index d0846306..d491b912 100644 Binary files a/data/icons/asus_notif_yellow.png and b/data/icons/asus_notif_yellow.png differ diff --git a/rog-control-center/src/tray.rs b/rog-control-center/src/tray.rs index 2d218b2d..af4f2d0b 100644 --- a/rog-control-center/src/tray.rs +++ b/rog-control-center/src/tray.rs @@ -49,11 +49,11 @@ pub fn init_tray(recv_command: Receiver) -> Receiver { match command { AppToTray::DgpuStatus(s) => { match s { - GfxPower::Active => tray.set_icon("gpu-nvidia"), - GfxPower::Suspended => tray.set_icon("gpu-integrated"), - GfxPower::Off => tray.set_icon("rog-control-center"), - GfxPower::AsusDisabled => tray.set_icon("gpu-integrated"), - GfxPower::AsusMuxDiscreet => tray.set_icon("gpu-nvidia"), + GfxPower::Active => tray.set_icon("asus_notif_red"), + GfxPower::Suspended => tray.set_icon("asus_notif_blue"), + GfxPower::Off => tray.set_icon("asus_notif_green"), + GfxPower::AsusDisabled => tray.set_icon("asus_notif_white"), + GfxPower::AsusMuxDiscreet => tray.set_icon("asus_notif_red"), GfxPower::Unknown => tray.set_icon("gpu-integrated"), } .ok();