From 9b21d107c7b965fa93be5561b609196081ffbd02 Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Wed, 8 Apr 2026 14:48:57 +0300 Subject: [PATCH] docs: Updated building section to mention features --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d71099..2c5c3bb 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,22 @@ finished = true _Note: if event is not finished yet, it may have_ `end = start`. ## Building -Requirements: + +### Requirements - Rust toolchain - Slint dependencies (see [Platforms](https://docs.slint.dev/latest/docs/slint/guide/platforms/desktop/) and [Backends & Renderers](https://docs.slint.dev/latest/docs/slint/guide/backends-and-renderers/backends_and_renderers/)) -Instructions: -Just run `cargo build --release` and the resulting binary can be located at `target/release/aliveline[.exe]` if compilation succeeds. +### Feature flags +By default Aliveline compiles with theme autodetection, provided by Slint, which sometimes does not work on Linux. +You can use these flags to compile Aliveline with selected theme: +- `light` +- `dark` + +### Instructions +Run `cargo build --release` +Pass features in build command with `-F foo` or `--feature foo` +Resulting binary will be located at `target/release/aliveline[.exe]` + If compilation fails, double check that you have all required dependencies. If it still fails, file an issue on [Codeberg](https://codeberg.org/2ndbeam/aliveline/issues), including logs and system info. ## Usage