Merge branch 'corners' into 'master'

display: Remove unused corner_radius

See merge request Librem5/squeekboard!174
This commit is contained in:
David Boddie
2019-09-26 21:16:43 +00:00
11 changed files with 0 additions and 25 deletions

View File

@ -3,16 +3,12 @@ bounds: { x: 0, y: 6.33, width: 426, height: 250 }
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 32, height: 52 } bounds: { x: 0, y: 0, width: 32, height: 52 }
altline: altline:
corner_radius: 1
bounds: { x: 0, y: 0, width: 48.39024, height: 52 } bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
outline7: outline7:
corner_radius: 1
bounds: { x: 0, y: 0, width: 88.97561, height: 52 } bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
spaceline: spaceline:
corner_radius: 1
bounds: { x: 0, y: 0, width: 150.5853, height: 52 } bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
views: views:

View File

@ -3,16 +3,12 @@ bounds: { x: 0, y: 6.33, width: 410, height: 250 }
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 37.46341, height: 52 } bounds: { x: 0, y: 0, width: 37.46341, height: 52 }
altline: altline:
corner_radius: 1
bounds: { x: 0, y: 0, width: 48.39024, height: 52 } bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
outline7: outline7:
corner_radius: 1
bounds: { x: 0, y: 0, width: 88.97561, height: 52 } bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
spaceline: spaceline:
corner_radius: 1
bounds: { x: 0, y: 0, width: 120.5853, height: 52 } bounds: { x: 0, y: 0, width: 120.5853, height: 52 }
views: views:

View File

@ -3,19 +3,14 @@ bounds: { x: 0, y: 1, width: 360, height: 198 }
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 30.67, height: 40.67 } bounds: { x: 0, y: 0, width: 30.67, height: 40.67 }
altline: altline:
corner_radius: 1
bounds: { x: 0, y: 0, width: 48, height: 40.67 } bounds: { x: 0, y: 0, width: 48, height: 40.67 }
wide: wide:
corner_radius: 1
bounds: { x: 0, y: 0, width: 57.33, height: 40.67 } bounds: { x: 0, y: 0, width: 57.33, height: 40.67 }
spaceline: spaceline:
corner_radius: 1
bounds: { x: 0, y: 0, width: 137.33, height: 40.67 } bounds: { x: 0, y: 0, width: 137.33, height: 40.67 }
special: special:
corner_radius: 1
bounds: { x: 0, y: 0, width: 39.33, height: 40.67 } bounds: { x: 0, y: 0, width: 39.33, height: 40.67 }
views: views:

View File

@ -218,7 +218,6 @@ enum Action {
#[derive(Debug, Clone, Deserialize, PartialEq)] #[derive(Debug, Clone, Deserialize, PartialEq)]
#[serde(deny_unknown_fields)] #[serde(deny_unknown_fields)]
struct Outline { struct Outline {
corner_radius: f64,
bounds: Bounds, bounds: Bounds,
} }
@ -469,7 +468,6 @@ fn create_button(
.unwrap_or_else(|| { .unwrap_or_else(|| {
eprintln!("No default outline defied Using 1x1!"); eprintln!("No default outline defied Using 1x1!");
Outline { Outline {
corner_radius: 0f64,
bounds: Bounds { x: 0f64, y: 0f64, width: 1f64, height: 1f64 }, bounds: Bounds { x: 0f64, y: 0f64, width: 1f64, height: 1f64 },
} }
}); });
@ -483,7 +481,6 @@ fn create_button(
width: outline.bounds.width, width: outline.bounds.width,
height: outline.bounds.height, height: outline.bounds.height,
}, },
corner_radius: outline.corner_radius,
label: label, label: label,
state: state, state: state,
} }
@ -517,7 +514,6 @@ mod tests {
}, },
outlines: hashmap!{ outlines: hashmap!{
"default".into() => Outline { "default".into() => Outline {
corner_radius: 1f64,
bounds: Bounds { bounds: Bounds {
x: 0f64, y: 0f64, width: 0f64, height: 0f64 x: 0f64, y: 0f64, width: 0f64, height: 0f64
}, },

View File

@ -3,7 +3,6 @@ use std::ffi::CString;
use std::num::Wrapping; use std::num::Wrapping;
use std::string::String; use std::string::String;
use super::bitflags;
use ::util::c::into_cstring; use ::util::c::into_cstring;
// Traits // Traits

View File

@ -498,7 +498,6 @@ pub mod c {
) -> Box<Button> { ) -> Box<Button> {
Box::new(Button { Box::new(Button {
name: CString::new(name.clone()).unwrap(), name: CString::new(name.clone()).unwrap(),
corner_radius: 0f64,
bounds: c::Bounds { bounds: c::Bounds {
x: 0f64, y: 0f64, width: 0f64, height: 0f64 x: 0f64, y: 0f64, width: 0f64, height: 0f64
}, },
@ -561,7 +560,6 @@ pub struct Button {
pub name: CString, pub name: CString,
/// Label to display to the user /// Label to display to the user
pub label: Label, pub label: Label,
pub corner_radius: f64,
/// TODO: position the buttons before they get initial bounds /// TODO: position the buttons before they get initial bounds
/// Position relative to some origin (i.e. parent/row) /// Position relative to some origin (i.e. parent/row)
pub bounds: c::Bounds, pub bounds: c::Bounds,

View File

@ -9,7 +9,6 @@ views:
- "test" - "test"
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 0, height: 0 } bounds: { x: 0, y: 0, width: 0, height: 0 }
buttons: buttons:

View File

@ -7,6 +7,5 @@ bounds:
height: 0 height: 0
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 0, height: 0 } bounds: { x: 0, y: 0, width: 0, height: 0 }

View File

@ -10,7 +10,6 @@ views:
- "test" - "test"
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 0, height: 0 } bounds: { x: 0, y: 0, width: 0, height: 0 }
bad_field: false bad_field: false

View File

@ -10,7 +10,6 @@ views:
- "." - "."
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 0, height: 0 } bounds: { x: 0, y: 0, width: 0, height: 0 }
buttons: buttons:

View File

@ -10,7 +10,6 @@ views:
- "å" - "å"
outlines: outlines:
default: default:
corner_radius: 1
bounds: { x: 0, y: 0, width: 0, height: 0 } bounds: { x: 0, y: 0, width: 0, height: 0 }
buttons: buttons: