Permalink
f15d714 Jul 11, 2016
@dockimbel @qtxie
107 lines (106 sloc) 2.38 KB
Red [
Title: "VID built-in styles"
Author: "Nenad Rakocevic"
File: %styles.red
Tabs: 4
Rights: "Copyright (C) 2015 Nenad Rakocevic. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/dockimbel/Red/blob/master/BSL-License.txt
}
]
#(
window: [
default-actor: on-down
template: [type: 'window size: 100x100]
]
base: [
default-actor: on-down
template: [type: 'base size: 80x80 color: 128.128.128]
]
button: [
default-actor: on-click
template: [type: 'button size: 60x30]
]
text: [
default-actor: on-change
template: [type: 'text size: 80x24]
]
field: [
default-actor: on-enter
template: [type: 'field size: 80x24]
]
area: [
default-actor: on-change
template: [type: 'area size: 150x150]
]
check: [
default-actor: on-change
template: [type: 'check size: 80x24]
]
radio: [
default-actor: on-change
template: [type: 'radio size: 80x24]
]
progress: [
default-actor: on-change
template: [type: 'progress size: 140x16]
]
slider: [
default-actor: on-change
template: [type: 'slider size: 150x24 data: 0%]
]
image: [
default-actor: on-down
template: [type: 'base size: 100x100]
init: [unless face/image [face/image: make image! face/size]]
]
camera: [
default-actor: on-down
template: [type: 'camera size: 250x250]
]
text-list: [
default-actor: on-change
template: [type: 'text-list size: 100x140]
]
drop-list: [
default-actor: on-change
template: [type: 'drop-list size: 100x24]
]
drop-down: [
default-actor: on-enter
template: [type: 'drop-down size: 100x24]
]
panel: [
default-actor: on-down ;@@ something better?
template: [type: 'panel size: 200x200]
]
group-box: [
default-actor: on-down ;@@ something better?
template: [type: 'group-box size: 200x200]
]
tab-panel: [
default-actor: on-select
template: [type: 'tab-panel]
]
h1: [
default-actor: on-change
template: [type: 'text size: 80x24 font: make font! [size: 32]]
]
h2: [
default-actor: on-change
template: [type: 'text size: 80x24 font: make font! [size: 26]]
]
h3: [
default-actor: on-change
template: [type: 'text size: 80x24 font: make font! [size: 22]]
]
h4: [
default-actor: on-change
template: [type: 'text size: 80x24 font: make font! [size: 17]]
]
h5: [
default-actor: on-change
template: [type: 'text size: 80x24 font: make font! [size: 13]]
]
)