Sliding Clock: Reducing rows for hybrid clock for bangle 1
parent
852cfc0294
commit
999cd369b9
|
|
@ -335,7 +335,7 @@ function initDisplay(settings) {
|
||||||
mlarge: [45,35],
|
mlarge: [45,35],
|
||||||
large: [50,40],
|
large: [50,40],
|
||||||
vlarge: [60,50],
|
vlarge: [60,50],
|
||||||
slarge: [100,90]
|
slarge: [110,90]
|
||||||
};
|
};
|
||||||
|
|
||||||
var rotations = {
|
var rotations = {
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class EnglishDateFormatter extends DateFormatter {
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultRowDefs(){
|
defaultRowDefs(){
|
||||||
return [
|
const row_defs = [
|
||||||
{
|
{
|
||||||
type: 'large',
|
type: 'large',
|
||||||
init_coords: [0.05,0.35],
|
init_coords: [0.05,0.35],
|
||||||
|
|
@ -55,18 +55,24 @@ class EnglishDateFormatter extends DateFormatter {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'medium',
|
type: 'medium',
|
||||||
init_coords: [0.7,0.95],
|
init_coords: [0.68,0.95],
|
||||||
row_direction: [1.0,0.0],
|
row_direction: [1.0,0.0],
|
||||||
angle_to_horizontal: 90,
|
angle_to_horizontal: 90,
|
||||||
rows: 2
|
rows: 2
|
||||||
},
|
}];
|
||||||
{
|
|
||||||
type: 'small',
|
const bangleVersion = (g.getHeight()>200)? 1 : 2;
|
||||||
init_coords: [0.05, 0.1],
|
if(bangleVersion > 1){
|
||||||
row_direction: [0.0, 1.0],
|
row_defs.push(
|
||||||
rows: 1
|
{
|
||||||
}
|
type: 'small',
|
||||||
];
|
init_coords: [0.05, 0.1],
|
||||||
|
row_direction: [0.0, 1.0],
|
||||||
|
rows: 1
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
return row_defs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue