-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from enisn/containers
Add container styles
- Loading branch information
Showing
7 changed files
with
65 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Containers | ||
Uranium UI provies a set of style classes to help you style your application. You can use these classes to style your application in a consistent way. | ||
Containers are layouts that has a specific background and they modifies elements inside them. If background of a container is a dark color, texts inside it will be a light color and vice versa. | ||
|
||
Container classes can be defined any type of View, but they are mostly used with `*Layout` and `Frame`. | ||
|
||
## Usage | ||
You should pass a proper container class as `StyleClass` property of a View. | ||
|
||
Valid container classes are: | ||
|
||
- `PrimaryContainer` | ||
- `SecondaryContainer` | ||
- `TertiaryContainer` | ||
- `ErrorContainer` | ||
|
||
|
||
```xml | ||
<Frame StyleClass="PrimaryContainer"> | ||
<Label Text="Hello, World!" /> | ||
</Frame> | ||
``` | ||
|
||
![Uranium UI Simple Container](images/containers-demo.png) | ||
|
||
--- | ||
|
||
List of all containers: | ||
|
||
```xml | ||
<StackLayout StyleClass="PrimaryContainer" Padding="10"> | ||
<Label Text="Hello from primary container" /> | ||
</StackLayout> | ||
|
||
<StackLayout StyleClass="SecondaryContainer" Padding="10"> | ||
<Label Text="Hello from secondary container" /> | ||
</StackLayout> | ||
|
||
<StackLayout StyleClass="TertiaryContainer" Padding="10"> | ||
<Label Text="Hello from tertiary container" /> | ||
</StackLayout> | ||
|
||
<StackLayout StyleClass="ErrorContainer" Padding="10"> | ||
<Label Text="Hello from error container" /> | ||
</StackLayout> | ||
``` | ||
|
||
|
||
| Light | Dark | | ||
| --- | --- | | ||
| ![Uranium UI Containers Light](images/containers-demo-android-light.png) | ![Uranium UI Containers Dark](images/containers-demo-android-dark.png) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters