Merge branch 'targets' into 'master'
buttons: Buttons are next to each other, padding is visual only Closes #110 See merge request Librem5/squeekboard!209
This commit is contained in:
		@ -194,8 +194,6 @@ fn load_layout_with_fallback(
 | 
			
		||||
#[derive(Debug, Deserialize, PartialEq)]
 | 
			
		||||
#[serde(deny_unknown_fields)]
 | 
			
		||||
pub struct Layout {
 | 
			
		||||
    row_spacing: f64,
 | 
			
		||||
    button_spacing: f64,
 | 
			
		||||
    bounds: Bounds,
 | 
			
		||||
    views: HashMap<String, Vec<ButtonIds>>,
 | 
			
		||||
    #[serde(default)] 
 | 
			
		||||
@ -382,10 +380,6 @@ impl Layout {
 | 
			
		||||
                        width: self.bounds.width,
 | 
			
		||||
                        height: self.bounds.height,
 | 
			
		||||
                    },
 | 
			
		||||
                    spacing: ::layout::Spacing {
 | 
			
		||||
                        row: self.row_spacing,
 | 
			
		||||
                        button: self.button_spacing,
 | 
			
		||||
                    },
 | 
			
		||||
                    rows: view.iter().map(|row| {
 | 
			
		||||
                        Box::new(::layout::Row {
 | 
			
		||||
                            angle: 0,
 | 
			
		||||
@ -586,8 +580,6 @@ mod tests {
 | 
			
		||||
        assert_eq!(
 | 
			
		||||
            Layout::from_file(PathBuf::from("tests/layout.yaml")).unwrap(),
 | 
			
		||||
            Layout {
 | 
			
		||||
                row_spacing: 0f64,
 | 
			
		||||
                button_spacing: 0f64,
 | 
			
		||||
                bounds: Bounds { x: 0f64, y: 0f64, width: 0f64, height: 0f64 },
 | 
			
		||||
                views: hashmap!(
 | 
			
		||||
                    "base".into() => vec!("test".into()),
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user