mirror of
				https://github.com/Zedfrigg/ironbar.git
				synced 2025-11-04 07:21:54 +01:00 
			
		
		
		
	feat: Add orientation support for clock
This commit is contained in:
		
					parent
					
						
							
								751bb7b95e
							
						
					
				
			
			
				commit
				
					
						702b0a63bf
					
				
			
		
					 3 changed files with 28 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -40,6 +40,19 @@ pub enum TransitionType {
 | 
			
		|||
    SlideEnd,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[derive(Debug, Deserialize, Clone)]
 | 
			
		||||
#[serde(rename_all = "snake_case")]
 | 
			
		||||
pub enum ModuleOrientation {
 | 
			
		||||
    Horizontal,
 | 
			
		||||
    Vertical,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Default for ModuleOrientation {
 | 
			
		||||
    fn default() -> Self {
 | 
			
		||||
        ModuleOrientation::Horizontal
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl TransitionType {
 | 
			
		||||
    pub const fn to_revealer_transition_type(
 | 
			
		||||
        &self,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue