tweak(cosmic-theme): pretty write ini
This commit is contained in:
parent
3ed5c173fd
commit
754b064bff
3 changed files with 12 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue