mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
custom colors
This commit is contained in:
1 parent
d3edd09550
commit
597280c3c6
4 files changed
+18
-8
No files matched your search
@@ -16,12 +16,16 @@ tui_screen_t tui_screen_main() {
|
||||
int ret = MAIN_SCREEN;
|
||||
bool can_start = false;
|
||||
newtCenteredWindow(WIDTH, HEIGHT, NULL);
|
||||
newtComponent optionsButton = newtCompactButton(46, 17, "Options");
|
||||
newtComponent startButton = newtCompactButton(57, 17, "Start");
|
||||
newtComponent exitButton = newtCompactButton(66, 17, "Exit");
|
||||
newtComponent optionsButton = newtCompactButton(46, 18, "Options");
|
||||
newtComponent startButton = newtCompactButton(57, 18, "Start");
|
||||
newtComponent exitButton = newtCompactButton(66, 18, "Exit");
|
||||
newtComponent welcome = newtLabel(1, 0, "Welcome to palera1n!");
|
||||
newtComponent deviceMsg = newtTextbox(1, 2, 40, 3, NEWT_FLAG_WRAP);
|
||||
newtTextboxSetText(deviceMsg, "Connect your iPhone, iPad or iPod Touch to begin.");
|
||||
newtTextboxSetColors(deviceMsg, PI_LOG_COLOR, PI_LOG_COLOR);
|
||||
newtComponent form = newtForm(NULL, NULL, 0);
|
||||
newtFormAddComponents(form, optionsButton, startButton, exitButton, welcome, NULL);
|
||||
newtFormAddComponents(form, optionsButton, startButton, exitButton, welcome,
|
||||
deviceMsg, NULL);
|
||||
newtRunForm(form);
|
||||
newtRefresh();
|
||||
newtComponent buttonPressed = newtFormGetCurrent(form);
|
||||
|
||||
Reference in new issue
Block a user