mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
support vertical slider
This commit is contained in:
@@ -28,13 +28,13 @@ return { id = 'mainWindow', type = 'panel',
|
||||
},
|
||||
},
|
||||
{ type = 'panel', id = 'toolbar', style = 'toolbar', flow = 'x',
|
||||
{ type = 'button', id = 'newButton', style = 'toolButton', key = 'z',
|
||||
{ id = 'newButton', style = 'toolButton', key = 'z',
|
||||
icon = 'icon/32px/Blueprint.png',
|
||||
status = 'Create a new thing' },
|
||||
{ type = 'button', id = 'loadButton', style = 'toolButton',
|
||||
{ id = 'loadButton', style = 'toolButton',
|
||||
icon = 'icon/32px/Calendar.png',
|
||||
status = 'Load a thing' },
|
||||
{ type = 'button', id = 'saveButton', style = 'toolButton',
|
||||
{ id = 'saveButton', style = 'toolButton',
|
||||
icon = 'icon/32px/Harddrive.png',
|
||||
status = 'Save a thing' },
|
||||
},
|
||||
@@ -48,34 +48,43 @@ return { id = 'mainWindow', type = 'panel',
|
||||
align = 'top center' },
|
||||
{ text = 'A man, a plan, a canal: Panama!', style = 'listThing' },
|
||||
},
|
||||
{ type = 'sash', width = 4, },
|
||||
{ type = 'sash' },
|
||||
{ type = 'panel', id = 'mainCanvas' },
|
||||
{ type = 'sash', width = 4, },
|
||||
{ type = 'panel', id = 'rightSideBox', width = 200, minwidth = 64,
|
||||
{ type = 'panel', text = 'A slider', align = 'bottom', height = 24, padding = 4 },
|
||||
{ type = 'slider', height = 32, margin = 4, id = 'slidey', value = 0 },
|
||||
{ type = 'panel', text = 'A stepper', align = 'bottom', height = 24, padding = 4 },
|
||||
{ type = 'stepper', height = 32, margin = 4,
|
||||
{ value = 1, text = 'Thing One' },
|
||||
{ value = 2, text = 'Thing Two' },
|
||||
{ value = 3, text = 'Thing Three' },
|
||||
{ type = 'sash' },
|
||||
{ type = 'panel', id = 'rightSideBox', width = 200, minwidth = 64, scroll = true,
|
||||
{ id = 'flowTest',
|
||||
{ minheight = 64,
|
||||
{ type = 'label', text = 'Slider' },
|
||||
{ type = 'slider', id = 'slidey', value = 0 },
|
||||
},
|
||||
{ minheight = 64,
|
||||
{ type = 'label', text = 'Stepper' },
|
||||
{ type = 'stepper',
|
||||
{ value = 1, text = 'Thing One' },
|
||||
{ value = 2, text = 'Thing Two' },
|
||||
{ value = 3, text = 'Thing Three' },
|
||||
},
|
||||
},
|
||||
{ minheight = 64,
|
||||
{ type = 'label', text = 'Progress' },
|
||||
{ type = 'progress', id = 'progressBar', },
|
||||
},
|
||||
},
|
||||
{ type = 'panel', text = 'A progress bar', align = 'bottom', height = 24, padding = 4 },
|
||||
{ type = 'progress', height = 32, margin = 4, id = 'progressBar', },
|
||||
{ type = 'panel', text = 'A check box', align = 'bottom', height = 24, padding = 4 },
|
||||
{ type = 'check', text = 'Check it out', height = 32, padding = 4, id = 'checkBox', },
|
||||
{ type = 'panel', text = 'Some radio widgets', align = 'bottom', height = 24, padding = 4 },
|
||||
{ type = 'radio', text = 'One fish', height = 32, padding = 4, },
|
||||
{ type = 'radio', text = 'Two fish', height = 32, padding = 4, wrap = true },
|
||||
{ type = 'radio', text = 'Red fish', height = 32, padding = 4, },
|
||||
{ type = 'radio', text = 'Blue fish', height = 32, padding = 4, },
|
||||
{
|
||||
{ type = 'label', text = 'Above layout' },
|
||||
{ type = 'check', text = 'Flow horizontal', id = 'flowToggle', },
|
||||
{ type = 'label', text = 'Some radio widgets' },
|
||||
{ type = 'radio', text = 'One fish' },
|
||||
{ type = 'radio', text = 'Two fish' },
|
||||
{ type = 'radio', text = 'Red fish' },
|
||||
{ type = 'radio', text = 'Blue fish' },
|
||||
}
|
||||
},
|
||||
},
|
||||
{ type = 'sash', height = 4, },
|
||||
{ type = 'panel', flow = 'x', height = 48, padding = 2,
|
||||
{ type = 'sash' },
|
||||
{ type = 'panel', flow = 'x', height = 64,
|
||||
{ type = 'text', id = 'aTextField', text = 'Testing «ταБЬℓσ»: 1<2 & 4+1>3, now 20% off!' },
|
||||
{ type = 'button', key='return', width = 80, id = 'aButton', text = 'Styling!',
|
||||
font = 'font/DejaVuSansMono.ttf' },
|
||||
{ type = 'button', width = 90, id = 'aButton', text = 'Press me!' },
|
||||
},
|
||||
{ type = 'status', id = 'statusbar', height = 24, padding = 4, color = { 255, 0, 0 } },
|
||||
{ type = 'status', id = 'statusbar' },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user