mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs] IJPL-214007 Make parts of the Commit tool window transparent
These panels are designed to have the same background as the tool window itself. Instead of painstakingly tracking every panel to ensure it has the correct background, make them transparent, so they have the same background as the root opaque panel. (cherry picked from commit e24f4dd7b93a8bc08a0d1af4dc04d32cf4e46b9d) IJ-CR-179650 GitOrigin-RevId: 790da1beb31f63915b92f6001629e08b3297c884
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c6650705f4
commit
4bfdbf65dd
@@ -57,15 +57,19 @@ abstract class NonModalCommitPanel(
|
||||
private var commitInputBorder: CommitInputBorder? = null
|
||||
|
||||
private val mainPanel: BorderLayoutPanel = object : BorderLayoutPanel(), UiDataProvider {
|
||||
init {
|
||||
isOpaque = false
|
||||
}
|
||||
|
||||
override fun uiDataSnapshot(sink: DataSink) {
|
||||
DataSink.uiDataSnapshot(sink, commitMessage)
|
||||
uiDataSnapshotFromProviders(sink)
|
||||
}
|
||||
}
|
||||
|
||||
protected val centerPanel: BorderLayoutPanel = JBUI.Panels.simplePanel()
|
||||
protected val centerPanel: BorderLayoutPanel = JBUI.Panels.simplePanel().also { it.isOpaque = false }
|
||||
|
||||
private val bottomPanel: JBPanel<JBPanel<*>> = JBPanel<JBPanel<*>>(VerticalLayout(0))
|
||||
private val bottomPanel: JBPanel<JBPanel<*>> = JBPanel<JBPanel<*>>(VerticalLayout(0)).also { it.isOpaque = false }
|
||||
|
||||
private val actions = ActionManager.getInstance().getAction("ChangesView.CommitToolbar") as ActionGroup
|
||||
val toolbar: ActionToolbar = ActionManager.getInstance().createActionToolbar(COMMIT_TOOLBAR_PLACE, actions, true).apply {
|
||||
|
||||
Reference in New Issue
Block a user