Skip to content

add custom ssd height #865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cosmic-theme/src/model/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ pub struct Theme {
pub is_high_contrast: bool,
/// cosmic-comp window gaps size (outer, inner)
pub gaps: (u32, u32),
/// cosmic-comp height of server-side decorations
pub ssd_height: u32,
/// cosmic-comp active hint window outline width
pub active_hint: u32,
/// cosmic-comp custom window hint color
Expand Down Expand Up @@ -698,6 +700,8 @@ pub struct ThemeBuilder {
pub is_frosted: bool, // TODO handle
/// cosmic-comp window gaps size (outer, inner)
pub gaps: (u32, u32),
/// cosmic-comp height of server-side decorations
pub ssd_height: u32,
/// cosmic-comp active hint window outline width
pub active_hint: u32,
/// cosmic-comp custom window hint color
Expand All @@ -722,6 +726,7 @@ impl Default for ThemeBuilder {
is_frosted: false,
// cosmic-comp theme settings
gaps: (0, 8),
ssd_height: 36,
active_hint: 3,
window_hint: None,
}
Expand Down Expand Up @@ -863,6 +868,7 @@ impl ThemeBuilder {
warning,
destructive,
gaps,
ssd_height,
active_hint,
window_hint,
is_frosted,
Expand Down Expand Up @@ -1242,6 +1248,7 @@ impl ThemeBuilder {
is_dark,
is_high_contrast,
gaps,
ssd_height,
active_hint,
window_hint,
is_frosted,
Expand Down