mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-10 10:20:44 -07:00
centralize all colors, begin themeing support
This commit is contained in:
parent
72bf9a8297
commit
2a059d1c02
9 changed files with 405 additions and 186 deletions
|
|
@ -190,6 +190,10 @@ object Helpers {
|
|||
}
|
||||
}
|
||||
|
||||
fun showAlert(message: String, title: String, type: Int){
|
||||
JOptionPane.showMessageDialog(null, message, title, type)
|
||||
}
|
||||
|
||||
fun formatHtmlLabelText(text1: String, color1: Color, text2: String, color2: Color): String {
|
||||
return "<html><div style='white-space:nowrap;'>" +
|
||||
"<span style='color:rgb(${color1.red},${color1.green},${color1.blue});'>$text1</span>" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue