Skip to content

Commit 7489870

Browse files
committed
Cleanup
[skip ci]
1 parent 97ec5e4 commit 7489870

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

app/src/processing/app/gradle/Exceptions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import kotlinx.coroutines.delay
1212
import kotlinx.coroutines.launch
1313
import processing.app.Messages
1414

15+
// TODO: Consider adding a panel to the footer
1516
class Exceptions {
1617
companion object {
1718
suspend fun listen(vm: VirtualMachine) {

app/src/processing/app/gradle/ui/Toolbar.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,22 @@ import androidx.compose.ui.window.Window
3333
import androidx.compose.ui.window.WindowPosition
3434
import androidx.compose.ui.window.rememberWindowState
3535
import groovyjarjarantlr4.v4.runtime.misc.Args
36+
import processing.app.Language
37+
import processing.app.Preferences
3638
import processing.app.gradle.helpers.ActionGradleJob
3739
import processing.app.gradle.GradleJob
3840
import processing.app.gradle.ScreenshotService
3941
import processing.app.ui.Editor
4042
import processing.app.ui.EditorToolbar
4143
import processing.app.ui.Theme
44+
import processing.app.ui.Welcome.Companion.welcome
45+
import processing.app.ui.theme.PDEWindow
46+
import processing.app.ui.theme.pdeapplication
4247
import processing.app.ui.theme.toColorInt
4348
import java.io.File
49+
import java.io.IOException
4450
import javax.swing.JComponent
51+
import javax.swing.SwingUtilities
4552

4653
class Toolbar(val editor: Editor?) {
4754
companion object {
@@ -63,14 +70,10 @@ class Toolbar(val editor: Editor?) {
6370

6471
return panel
6572
}
66-
@JvmStatic
67-
fun main(args: Array<String>) {
68-
69-
}
7073
}
7174

7275
// TODO: Split into multiple files
73-
// TODO: Use svgs for icons
76+
// TODO: Make runnable outside of Processing IDE
7477
@OptIn(ExperimentalMaterialApi::class, ExperimentalComposeUiApi::class, ExperimentalFoundationApi::class)
7578
@Composable
7679
fun display() {

app/src/processing/app/ui/theme/Colors.kt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,4 @@ val PDELightColors = Colors(
1717
onSurface = Color("#FFFFFF".toColorInt()),
1818
onError = Color("#0F195A".toColorInt()),
1919
isLight = true,
20-
)
21-
22-
fun String.toColorInt(): Int {
23-
if (this[0] == '#') {
24-
var color = substring(1).toLong(16)
25-
if (length == 7) {
26-
color = color or 0x00000000ff000000L
27-
} else if (length != 9) {
28-
throw IllegalArgumentException("Unknown color")
29-
}
30-
return color.toInt()
31-
}
32-
throw IllegalArgumentException("Unknown color")
33-
}
20+
)

0 commit comments

Comments
 (0)