-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#415] Add text fields style configuration in theme
- Loading branch information
1 parent
0389821
commit 612bca0
Showing
4 changed files
with
44 additions
and
37 deletions.
There are no files selected for viewing
29 changes: 0 additions & 29 deletions
29
theme-contract/src/main/java/com/orange/ods/theme/OdsComponentCustomizations.kt
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
theme-contract/src/main/java/com/orange/ods/theme/OdsComponentsConfiguration.kt
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,34 @@ | ||
/* | ||
* | ||
* Copyright 2021 Orange | ||
* | ||
* Use of this source code is governed by an MIT-style | ||
* license that can be found in the LICENSE file or at | ||
* https://opensource.org/licenses/MIT. | ||
* / | ||
*/ | ||
|
||
package com.orange.ods.theme | ||
|
||
/** | ||
* Contains all the allowed components customizations. | ||
* This class can be extended to override default appearances. | ||
*/ | ||
open class OdsComponentsConfiguration { | ||
|
||
companion object { | ||
enum class ComponentStyle { | ||
Filled, Outlined | ||
} | ||
} | ||
|
||
/** | ||
* By default, the chips are outlined. If your theme needs to use filled chips, set this parameter to `ComponentStyle.Filled`. | ||
*/ | ||
open val chipStyle: ComponentStyle = ComponentStyle.Outlined | ||
|
||
/** | ||
* By default, the text fields are outlined and more accessible in term of contrast like that. If your theme needs to use filled text fields, ser this parameter to `ComponentStyle.Filled`. | ||
*/ | ||
open val textFieldStyle: ComponentStyle = ComponentStyle.Outlined | ||
} |
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