mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
Rename package name again
This commit is contained in:
parent
ea4057c0f3
commit
27cb975c62
@ -11,11 +11,10 @@ package net.mamoe.mirai.console.graphical
|
||||
|
||||
import net.mamoe.mirai.console.MiraiConsole
|
||||
import net.mamoe.mirai.console.graphical.controller.MiraiGraphicalUIController
|
||||
import net.mamoe.mirai.console.graphical.styleSheet.PrimaryStyleSheet
|
||||
import net.mamoe.mirai.console.graphical.stylesheet.PrimaryStyleSheet
|
||||
import net.mamoe.mirai.console.graphical.view.Decorator
|
||||
import tornadofx.App
|
||||
import tornadofx.find
|
||||
import tornadofx.launch
|
||||
|
||||
//object MiraiGraphicalLoader {
|
||||
// @JvmStatic
|
||||
|
@ -1,4 +1,4 @@
|
||||
package net.mamoe.mirai.console.graphical.styleSheet
|
||||
package net.mamoe.mirai.console.graphical.stylesheet
|
||||
|
||||
import javafx.scene.layout.BackgroundRepeat
|
||||
import javafx.scene.paint.Color
|
||||
|
@ -1,4 +1,4 @@
|
||||
package net.mamoe.mirai.console.graphical.styleSheet
|
||||
package net.mamoe.mirai.console.graphical.stylesheet
|
||||
|
||||
import javafx.scene.Cursor
|
||||
import javafx.scene.effect.BlurType
|
||||
|
@ -1,4 +1,4 @@
|
||||
package net.mamoe.mirai.console.graphical.styleSheet
|
||||
package net.mamoe.mirai.console.graphical.stylesheet
|
||||
|
||||
import javafx.geometry.Pos
|
||||
import javafx.scene.paint.Color
|
||||
|
@ -1,4 +1,4 @@
|
||||
package net.mamoe.mirai.console.graphical.styleSheet
|
||||
package net.mamoe.mirai.console.graphical.stylesheet
|
||||
|
||||
import javafx.scene.Cursor
|
||||
import javafx.scene.text.FontWeight
|
||||
@ -50,14 +50,11 @@ class PrimaryStyleSheet : BaseStyleSheet() {
|
||||
backgroundColor += c(100, 100, 100, 0.4)
|
||||
backgroundRadius += box(5.px)
|
||||
|
||||
textFill = c(fontColor)
|
||||
fontWeight = FontWeight.BOLD
|
||||
textFill = c(fontColor)
|
||||
fontWeight = FontWeight.BOLD
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
textField {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@ import javafx.geometry.Pos
|
||||
import javafx.scene.image.Image
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import net.mamoe.mirai.console.graphical.controller.MiraiGraphicalUIController
|
||||
import net.mamoe.mirai.console.graphical.styleSheet.LoginViewStyleSheet
|
||||
import net.mamoe.mirai.console.graphical.stylesheet.LoginViewStyleSheet
|
||||
import net.mamoe.mirai.console.graphical.util.jfxButton
|
||||
import net.mamoe.mirai.console.graphical.util.jfxPasswordfield
|
||||
import net.mamoe.mirai.console.graphical.util.jfxTextfield
|
||||
|
@ -3,7 +3,7 @@ package net.mamoe.mirai.console.graphical.view
|
||||
import com.jfoenix.controls.JFXTreeTableColumn
|
||||
import net.mamoe.mirai.console.graphical.controller.MiraiGraphicalUIController
|
||||
import net.mamoe.mirai.console.graphical.model.PluginModel
|
||||
import net.mamoe.mirai.console.graphical.styleSheet.PluginViewStyleSheet
|
||||
import net.mamoe.mirai.console.graphical.stylesheet.PluginViewStyleSheet
|
||||
import net.mamoe.mirai.console.graphical.util.jfxTreeTableView
|
||||
import tornadofx.View
|
||||
import tornadofx.addStylesheet
|
||||
|
@ -65,6 +65,26 @@ class PrimaryView : View() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
center = vbox {
|
||||
|
||||
jfxTabPane {
|
||||
|
||||
fitToParentHeight()
|
||||
|
||||
tabClosingPolicy = TabPane.TabClosingPolicy.ALL_TABS
|
||||
|
||||
logTab("Main", controller.mainLog, closeable = false)
|
||||
|
||||
fixedTab("Plugins").content = find<PluginsView>().root
|
||||
|
||||
fixedTab("Settings").content = find<SettingsView>().root
|
||||
|
||||
fixedTab("Login").content = find<LoginView>().root
|
||||
|
||||
mainTabPane = this
|
||||
}
|
||||
|
||||
// command input
|
||||
textfield {
|
||||
@ -80,21 +100,6 @@ class PrimaryView : View() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
center = jfxTabPane {
|
||||
|
||||
tabClosingPolicy = TabPane.TabClosingPolicy.ALL_TABS
|
||||
|
||||
logTab("Main", controller.mainLog, closeable = false)
|
||||
|
||||
fixedTab("Plugins").content = find<PluginsView>().root
|
||||
|
||||
fixedTab("Settings").content = find<SettingsView>().root
|
||||
|
||||
fixedTab("Login").content = find<LoginView>().root
|
||||
|
||||
mainTabPane = this
|
||||
}
|
||||
}
|
||||
|
||||
fun Tab.select() = apply {
|
||||
|
Loading…
Reference in New Issue
Block a user