This Rust project reads and displays the current GTK color scheme used on the system.
The program executes a command to get the current GTK theme and reads the associated gtkrc
configuration file. It extracts color properties from the file and displays them in JSON format.
- Retrieves the current GTK theme using
gsettings
. - Reads the
gtkrc
file of the current theme. - Parses and extracts color properties.
- Displays the color properties in JSON format.
- gsettings: Ensure you have
gsettings
installed on your system.
Clone this repository and build the project with Cargo:
git clone https://github.com/TrueIG/GTK-Color-Scheme-Reader.git
cd GTK-Color-Scheme-Reader
cargo build --release
Run the program:
./target/release/gtk-theme