Comments (4)
Hey there. There are no built-in styles in RmlUi, so you have to define them all yourself. Of course, feel free to take a look at our samples and tests.
See also the documentation, it documents how to style some of the built-in elements: https://mikke89.github.io/RmlUiDoc/pages/style_guide.html
from rmlui.
You can style them however you'd like using normal RCSS rules, spritesheets just being one way. For more complex shapes, like a checkmark, a sprite does make a lot of sense though.
By the way, I figured the documentation page wasn't entirely clear, so I made some changes just now to improve the introduction of it.
from rmlui.
Makes sense, I'm gonna close this as I should be able to figure it out from here. Figured I missed something in the docs and looks like I did. Thanks for the help!
from rmlui.
I checked out the documentation you linked and it seems like spritesheets are how you're defining different element states. Is this the approach I would take for the checkbox? Use a spritesheet containing unchecked and checked sprites and just switch between them?
from rmlui.
Related Issues (20)
- CSS Custom Properties HOT 1
- "contextmenu" (right click) event is not implemented HOT 3
- Use controllers in the menus HOT 7
- Issues with clip and transform properties when used together. HOT 2
- C Bindings, Arrays and Structs HOT 4
- RmlUi GLFW3 (Vulkan) causes amgpu driver crash HOT 13
- SetDensityIndependentPixelRatio does not cause a change with GLFW3 GL3 HOT 5
- Rml::SystemInterface::JoinPath not used when using RmlDebugger causes different resource search paths on my debug and release builds HOT 3
- Change `Element::AddEventListener` to take weak pointers to the event listener HOT 8
- Multiple animations with the same property on the same element not supported HOT 4
- Vulkan Backend does not work with Lottie animations over time HOT 7
- I noticed that there are other licenses in the folder, one of which mentions the GNU protocol. HOT 2
- Tga file loading does not work correctly, but not in all circumstances (and only in Windows!). HOT 5
- Multiple css styles are not supported HOT 5
- RCSS selector escaping HOT 3
- The default GLFW GL3 backend yields weird display HOT 4
- Support for mouseenter and mouseleave events. HOT 3
- Support for Modulus operation in expressions HOT 3
- Rml::Span doesn't exist when RmlUi is installed from vcpkg which leads to backend compilaton errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmlui.