mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-18 20:40:20 -07:00
Move shared definitions to a central location
This commit is contained in:
parent
df091ac94b
commit
9f5d6f59e3
9 changed files with 132 additions and 91 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package KondoKit.components
|
||||
|
||||
import KondoKit.ImageCanvas
|
||||
import KondoKit.ViewConstants
|
||||
import KondoKit.SpriteToBufferedImage
|
||||
import KondoKit.plugin.Companion.WIDGET_COLOR
|
||||
import KondoKit.plugin.Companion.secondaryColor
|
||||
|
|
@ -26,7 +27,7 @@ class SearchField(
|
|||
private val bufferedImageSprite = SpriteToBufferedImage.getBufferedImageFromSprite(API.GetSprite(1423)) // MAG_SPRITE
|
||||
private val imageCanvas = bufferedImageSprite.let {
|
||||
ImageCanvas(it).apply {
|
||||
preferredSize = Dimension(12, 12)
|
||||
preferredSize = ViewConstants.DIMENSION_SMALL_ICON
|
||||
size = preferredSize
|
||||
minimumSize = preferredSize
|
||||
maximumSize = preferredSize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue