design: Make server side decorations compact
This commit is contained in:
parent
16cce7c97a
commit
6ca1a37a53
2 changed files with 3 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ impl PartialEq<X11Surface> for CosmicSurface {
|
|||
#[derive(Default)]
|
||||
struct Minimized(AtomicBool);
|
||||
|
||||
pub const SSD_HEIGHT: i32 = 48;
|
||||
pub const SSD_HEIGHT: i32 = 36;
|
||||
pub const RESIZE_BORDER: i32 = 10;
|
||||
|
||||
impl CosmicSurface {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use crate::{
|
|||
},
|
||||
};
|
||||
use calloop::LoopHandle;
|
||||
use cosmic::{iced::Command, widget::mouse_area, Apply};
|
||||
use cosmic::{config::Density, iced::Command, widget::mouse_area, Apply};
|
||||
use smithay::{
|
||||
backend::{
|
||||
input::KeyState,
|
||||
|
|
@ -551,6 +551,7 @@ impl Program for CosmicWindowInternal {
|
|||
.on_minimize(Message::Minimize)
|
||||
.on_maximize(Message::Maximize)
|
||||
.on_close(Message::Close)
|
||||
.density(Density::Compact)
|
||||
.apply(mouse_area)
|
||||
.on_right_press(Message::Menu)
|
||||
.into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue