Skip to content

Commit

Permalink
feat: add drawables design getting in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ThDev-only committed Oct 26, 2024
1 parent f0852fa commit db26d37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions robok-gui/src/main/java/org/robok/easyui/GUIBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ class GUIBuilder(
if (codeComments) xmlCodeList.newLineBroken(comment("Text Component"))
xmlCodeList.newLineBroken("${indent}<TextView")
indentLevel++
xmlCodeList.newLineBroken("${indent}android:drawable=\"\"" + config.style + "Text")
closingTagLayoutList.newLine("Text:/>")
}

fun Button() {
if (codeComments) xmlCodeList.newLineBroken(comment("Button Component"))
xmlCodeList.newLineBroken("${indent}<Button")
indentLevel++
xmlCodeList.newLineBroken("${indent}android:drawable=\"\"" + config.style + "Button")
closingTagLayoutList.newLine("Button:/>")
}

Expand Down

0 comments on commit db26d37

Please sign in to comment.