1
0
Fork 0
forked from wry/wry

config: clean up and document theming

This commit is contained in:
Julian Orth 2022-05-15 20:10:04 +02:00
parent 4780315f50
commit 6916f03e94
17 changed files with 745 additions and 285 deletions

View file

@ -3,7 +3,7 @@ use {
drm::{connector_type::ConnectorType, Connector, DrmDevice},
input::{acceleration::AccelProfile, capability::Capability, InputDevice, Seat},
keyboard::{keymap::Keymap, mods::Modifiers, syms::KeySym},
theme::Color,
theme::{colors::Colorable, sized::Resizable, Color},
Axis, Direction, LogLevel, PciId, Timer, Workspace,
},
bincode::{BorrowDecode, Decode, Encode},
@ -56,6 +56,11 @@ pub enum ServerMessage {
#[derive(Encode, BorrowDecode, Debug)]
pub enum ClientMessage<'a> {
Reload,
Quit,
SwitchTo {
vtnr: u32,
},
Log {
level: LogLevel,
msg: &'a str,
@ -65,10 +70,6 @@ pub enum ClientMessage<'a> {
GetSeat {
name: &'a str,
},
Quit,
SwitchTo {
vtnr: u32,
},
SetSeat {
device: InputDevice,
seat: Seat,
@ -139,24 +140,20 @@ pub enum ClientMessage<'a> {
kb: InputDevice,
grab: bool,
},
GetTitleHeight,
GetBorderWidth,
SetTitleHeight {
height: i32,
ResetSizes,
GetSize {
sized: Resizable,
},
SetBorderWidth {
width: i32,
SetSize {
sized: Resizable,
size: i32,
},
SetTitleColor {
color: Color,
ResetColors,
GetColor {
colorable: Colorable,
},
SetTitleUnderlineColor {
color: Color,
},
SetBorderColor {
color: Color,
},
SetBackgroundColor {
SetColor {
colorable: Colorable,
color: Color,
},
CreateSplit {
@ -169,9 +166,13 @@ pub enum ClientMessage<'a> {
FocusParent {
seat: Seat,
},
ToggleFloating {
GetFloating {
seat: Seat,
},
SetFloating {
seat: Seat,
floating: bool,
},
HasCapability {
device: InputDevice,
cap: Capability,
@ -246,7 +247,6 @@ pub enum ClientMessage<'a> {
GetFullscreen {
seat: Seat,
},
Reload,
GetDeviceConnectors {
device: DrmDevice,
},
@ -263,6 +263,11 @@ pub enum ClientMessage<'a> {
GetDrmDevicePciId {
device: DrmDevice,
},
ResetFont,
GetFont,
SetFont {
font: &'a str,
},
}
#[derive(Encode, Decode, Debug)]
@ -290,11 +295,8 @@ pub enum Response {
GetInputDevices {
devices: Vec<InputDevice>,
},
GetTitleHeight {
height: i32,
},
GetBorderWidth {
width: i32,
GetSize {
size: i32,
},
HasCapability {
has: bool,
@ -343,6 +345,15 @@ pub enum Response {
GetDrmDevicePciId {
pci_id: PciId,
},
GetFloating {
floating: bool,
},
GetColor {
color: Color,
},
GetFont {
font: String,
},
}
#[derive(Encode, Decode, Debug)]