tweak(cosmic-theme): pretty write ini

This commit is contained in:
Adil Hanney 2026-02-18 20:42:34 +00:00 committed by Jeremy Soller
parent 3ed5c173fd
commit 754b064bff
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,4 @@
use configparser::ini::WriteOptions;
use palette::{Srgba, rgb::Rgba};
use thiserror::Error;
@ -78,3 +79,9 @@ pub fn to_rgba(c: Srgba) -> String {
c_u8.red, c_u8.green, c_u8.blue, c.alpha
)
}
pub fn qt_settings_ini_style() -> WriteOptions {
let mut write_options = WriteOptions::default();
write_options.blank_lines_between_sections = 1;
write_options
}