Skip to content

Commit 7086f83

Browse files
committed
Use data object
1 parent eeeb435 commit 7086f83

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • plugin-build/modulegraph/src/main/kotlin/dev/iurysouza/modulegraph

plugin-build/modulegraph/src/main/kotlin/dev/iurysouza/modulegraph/Theme.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ sealed class Theme(val name: String) : JavaSerializable {
1212
/**
1313
* This theme goes well with dark-colored elements or dark-mode.
1414
*/
15-
object DARK : Theme("dark")
15+
data object DARK : Theme("dark")
1616

1717
/**
1818
* This is the default theme for all diagrams.
1919
*/
20-
object DEFAULT : Theme("default")
20+
data object DEFAULT : Theme("default")
2121

2222
/**
2323
* This theme contains shades of green.
2424
*/
25-
object FOREST : Theme("forest")
25+
data object FOREST : Theme("forest")
2626

2727
/**
2828
* This theme is great for black and white documents that will be printed.
2929
*/
30-
object NEUTRAL : Theme("neutral")
30+
data object NEUTRAL : Theme("neutral")
3131

3232
/**
3333
* The BASE theme can be used for customization. You just need to provide the themeVariables according to the specs.

0 commit comments

Comments
 (0)