control-center: add outputs pane
This commit is contained in:
parent
dee142b3bb
commit
d328655f8b
13 changed files with 1775 additions and 36 deletions
1711
src/control_center/cc_outputs.rs
Normal file
1711
src/control_center/cc_outputs.rs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -12,6 +12,7 @@ enum PaneName {
|
|||
Idle,
|
||||
ColorManagement,
|
||||
Xwayland,
|
||||
Outputs,
|
||||
}
|
||||
|
||||
impl PaneName {
|
||||
|
|
@ -21,6 +22,7 @@ impl PaneName {
|
|||
PaneName::Idle => "Idle",
|
||||
PaneName::ColorManagement => "Color Management",
|
||||
PaneName::Xwayland => "Xwayland",
|
||||
PaneName::Outputs => "Outputs",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -55,6 +57,9 @@ impl ControlCenterInner {
|
|||
PaneName::Xwayland => {
|
||||
PaneType::Xwayland(self.create_xwayland_pane())
|
||||
}
|
||||
PaneName::Outputs => {
|
||||
PaneType::Outputs(Box::new(self.create_outputs_pane()))
|
||||
}
|
||||
};
|
||||
self.open(tree, ty);
|
||||
ui.ctx().request_repaint();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue