Skip to content

Commit 3d1df0f

Browse files
committed
Updated InterfaceColors syntax
1 parent 3afa2d0 commit 3d1df0f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/GUIChildModel.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ class SyncedMenuBar extends JMenuBar with ThemeSync {
102102
override def paintComponent(g: Graphics): Unit = {
103103
val g2d = Utils.initGraphics2D(g)
104104

105-
g2d.setColor(InterfaceColors.menuBackground)
105+
g2d.setColor(InterfaceColors.menuBackground())
106106
g2d.fillRect(0, 0, getWidth, getHeight)
107107
}
108108

109109
override def paintBorder(g: Graphics): Unit = {
110110
val g2d = Utils.initGraphics2D(g)
111111

112-
g2d.setColor(InterfaceColors.menuBarBorder)
112+
g2d.setColor(InterfaceColors.menuBarBorder())
113113
g2d.drawLine(0, getHeight - 1, getWidth, getHeight - 1)
114114
}
115115

src/main/GUIPanel.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ extends JPanel with Events.OutputEvent.Handler with ThemeSync {
5656
}
5757

5858
def syncTheme(): Unit = {
59-
controlStrip.setBackground(InterfaceColors.toolbarBackground)
60-
scrollPane.setBackground(InterfaceColors.interfaceBackground)
59+
controlStrip.setBackground(InterfaceColors.toolbarBackground())
60+
scrollPane.setBackground(InterfaceColors.interfaceBackground())
6161

6262
tickCounterLabel.syncTheme()
6363
cc.syncTheme()
@@ -85,7 +85,7 @@ extends ModelPanel(ws, panel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, 1)
8585
override def syncTheme(): Unit = {
8686
super.syncTheme()
8787

88-
label.setForeground(InterfaceColors.toolbarText)
88+
label.setForeground(InterfaceColors.toolbarText())
8989
}
9090
}
9191

src/main/InterfaceComponent.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ with ThemeSync {
131131
}
132132

133133
def syncTheme(): Unit = {
134-
setBackground(InterfaceColors.interfaceBackground)
134+
setBackground(InterfaceColors.interfaceBackground())
135135

136136
interfacePanel.syncTheme()
137137
monitorManager.syncTheme()

src/main/ViewFrame.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ViewFrame(ws: HeadlessWorkspace) extends JFrame with CompileMoreSourceEven
5959
}
6060

6161
def syncTheme(): Unit = {
62-
viewContainer.setBackground(InterfaceColors.interfaceBackground)
62+
viewContainer.setBackground(InterfaceColors.interfaceBackground())
6363

6464
panel.syncTheme()
6565
}

0 commit comments

Comments
 (0)