tweak: return format! string directly
This commit is contained in:
parent
61486fae7d
commit
371cd1f542
1 changed files with 4 additions and 7 deletions
|
|
@ -17,8 +17,6 @@ impl Theme {
|
|||
/// Some high-level documentation for this file can be found at:
|
||||
/// https://web.archive.org/web/20250402234329/https://docs.kde.org/stable5/en/plasma-workspace/kcontrol/colors/
|
||||
pub fn as_qt(&self) -> String {
|
||||
let mut output = "# GENERATED BY COSMIC\n".to_string();
|
||||
|
||||
// Usually, disabled elements will have strongly reduced contrast and are often notably darker or lighter
|
||||
let disabled_color_effects = IniColorEffects {
|
||||
color: self.button.disabled,
|
||||
|
|
@ -120,8 +118,9 @@ impl Theme {
|
|||
|
||||
let light_or_dark = if self.is_dark { "Dark" } else { "Light" };
|
||||
|
||||
output.push_str(&format!(
|
||||
r#"
|
||||
format!(
|
||||
r#"# GENERATED BY COSMIC
|
||||
|
||||
[ColorEffects:Disabled]
|
||||
{}
|
||||
|
||||
|
|
@ -176,9 +175,7 @@ contrast=4
|
|||
format_ini_colors(&view_colors, bg),
|
||||
format_ini_colors(&window_colors, bg),
|
||||
format_ini_wm_colors(&view_colors, self.is_dark),
|
||||
));
|
||||
|
||||
output
|
||||
)
|
||||
}
|
||||
|
||||
/// Write the color scheme to the appropriate directory.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue