panel: Use scaling to set height

This commit is contained in:
Dorota Czaplejewicz
2022-04-04 14:21:15 +00:00
parent 7c43528ebf
commit 29b30fbe22
4 changed files with 42 additions and 15 deletions

View File

@ -6,6 +6,7 @@
use std::time::Duration;
use crate::main::PixelSize;
use crate::outputs::OutputId;
/// The keyboard should hide after this has elapsed to prevent flickering.
@ -16,7 +17,7 @@ pub const HIDING_TIMEOUT: Duration = Duration::from_millis(200);
pub enum Outcome {
Visible {
output: OutputId,
height: u32,
height: PixelSize,
},
Hidden,
}