use log::{debug, warn}; use smithay_client_toolkit::reexports::csd_frame::{WindowManagerCapabilities, WindowState}; use tiny_skia::{FillRule, PathBuilder, PixmapMut, Rect, Stroke, Transform}; use crate::{theme::ColorMap, Location, SkiaResult}; /// The size of the button on the header bar in logical points. const BUTTON_SIZE: f32 = 24.; const BUTTON_MARGIN: f32 = 5.; const BUTTON_SPACING: f32 = 13.; #[derive(Debug)] pub(crate) struct Buttons { // Sorted by order vec of buttons for the left and right sides buttons_left: Vec