Made readme better
This commit is contained in:
parent
698414ee65
commit
0063afed8c
22
README.md
22
README.md
@ -1,27 +1,13 @@
|
|||||||
# ![tomo](assets/banner.png)
|
# ![tomo](assets/screenshot.png)
|
||||||
|
|
||||||
This repository is [mirrored on GitHub](https://github.com/sashakoshka/tomo).
|
This repository is [mirrored on GitHub](https://github.com/sashakoshka/tomo).
|
||||||
|
|
||||||
Please note: Tomo is in early development. Some features may not work properly,
|
Please note: Tomo is in early development. Some features may not work properly,
|
||||||
and its API may change without notice.
|
and its API may change without notice.
|
||||||
|
|
||||||
Tomo is a retro-looking GUI toolkit written in pure Go. It is designed with
|
Tomo is a GUI toolkit written in pure Go with minimal external dependencies. It
|
||||||
these goals in mind:
|
makes use of Go's unique language features to do more with less. It is also
|
||||||
|
easily extendable with custom backends and elements.
|
||||||
- Modularity: the core of Tomo is mostly composed of interfaces—and the
|
|
||||||
overwhelming majority of its code resides in pluggable modules. If you don't
|
|
||||||
need it, then dont import it—and you can be assured it won't be there.
|
|
||||||
- Extendability: during the design of Tomo's API, use cases such as creating
|
|
||||||
custom backends, elements, and layouts were given just as much importance as
|
|
||||||
normal application building. Your custom element is a first-class citizen.
|
|
||||||
- Independence: Tomo is minimally dependent on code outside of the Go
|
|
||||||
standard library. Because of this, the file size of a compiled Tomo application
|
|
||||||
is typically very small.
|
|
||||||
- Frugality: Tomo foregoes things like animations and anti-aliasing in order to
|
|
||||||
use a minimal amount of system resources without even having to touch the GPU.
|
|
||||||
- Consistency: Tomo's design is not only consistent within itself, but also
|
|
||||||
with the Go standard library. If you've worked with Go in the past, Tomo will
|
|
||||||
feel pleasantly familliar.
|
|
||||||
|
|
||||||
You can find out more about how to use it by visiting the examples directory,
|
You can find out more about how to use it by visiting the examples directory,
|
||||||
or pull up its documentation by running `godoc` within the repository. You can
|
or pull up its documentation by running `godoc` within the repository. You can
|
||||||
|
BIN
assets/screenshot.png
Normal file
BIN
assets/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
@ -31,6 +31,7 @@ func NewSlider (value float64, orientation Orientation) (element *Slider) {
|
|||||||
element = &Slider {
|
element = &Slider {
|
||||||
value: value,
|
value: value,
|
||||||
vertical: bool(orientation),
|
vertical: bool(orientation),
|
||||||
|
enabled: true,
|
||||||
}
|
}
|
||||||
if orientation == Vertical {
|
if orientation == Vertical {
|
||||||
element.theme.Case = tomo.C("tomo", "sliderVertical")
|
element.theme.Case = tomo.C("tomo", "sliderVertical")
|
||||||
|
Reference in New Issue
Block a user