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