diff --git a/mos/background16x9.png b/mos/background16x9.png deleted file mode 100644 index 4451458..0000000 Binary files a/mos/background16x9.png and /dev/null differ diff --git a/mos/background4x3.png b/mos/background4x3.png deleted file mode 100644 index 84b3fbc..0000000 Binary files a/mos/background4x3.png and /dev/null differ diff --git a/mos/boot.png b/mos/boot.png deleted file mode 100644 index e0e31ae..0000000 Binary files a/mos/boot.png and /dev/null differ diff --git a/mos/boot.svg b/mos/boot.svg deleted file mode 100644 index 73eea27..0000000 --- a/mos/boot.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/mos/box.png b/mos/box.png deleted file mode 100755 index 54876e6..0000000 Binary files a/mos/box.png and /dev/null differ diff --git a/mos/bullet.png b/mos/bullet.png deleted file mode 100644 index a05ef26..0000000 Binary files a/mos/bullet.png and /dev/null differ diff --git a/mos/bullet.svg b/mos/bullet.svg deleted file mode 100644 index 38ef80e..0000000 --- a/mos/bullet.svg +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - diff --git a/mos/entry.png b/mos/entry.png deleted file mode 100755 index a9f4157..0000000 Binary files a/mos/entry.png and /dev/null differ diff --git a/mos/lock.png b/mos/lock.png deleted file mode 100644 index 1838bae..0000000 Binary files a/mos/lock.png and /dev/null differ diff --git a/mos/lock.svg b/mos/lock.svg deleted file mode 100644 index 9b2c65d..0000000 --- a/mos/lock.svg +++ /dev/null @@ -1,53 +0,0 @@ - - - - diff --git a/mos/mos.plymouth b/mos/mos.plymouth deleted file mode 100644 index 32b05e4..0000000 --- a/mos/mos.plymouth +++ /dev/null @@ -1,9 +0,0 @@ -[Plymouth Theme] -Name=MOS -Description=MOS Plymouth theme. -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/mos -ScriptFile=/usr/share/plymouth/themes/mos/mos.script -UseFirmwareBackground=false diff --git a/mos/mos.script b/mos/mos.script deleted file mode 100644 index 270de0a..0000000 --- a/mos/mos.script +++ /dev/null @@ -1,173 +0,0 @@ -# background -fun imglogo( image, scaleX, scaleY ) -{ - image.Scale( image.GetWidth() * scaleX, image.GetHeight() * scaleY ); -} - -# background -if( Window.GetWidth()/Window.GetHeight() > 1.5 ) -{ - logo.raw = Image("background16x9.png"); -} -else -{ - logo.raw = Image("background4x3.png"); -} - -logo.image = imglogo( logo.raw, Window.GetWidth()/logo.raw.GetWidth(), Window.GetHeight()/logo.raw.GetHeight()); -logo.sprite = Sprite(logo.image); -logo.sprite.SetPosition(0, 0, 0); - -#----------------------------------------- Ptogress Bar __________________________ - -if (Plymouth.GetMode () == "boot") -{ - progress_box.image = Image("progress_box.png"); - progress_box.sprite = Sprite(progress_box.image); - - progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; - #change here - progress_box.y = Window.GetY() + Window.GetHeight() * 0.65 - progress_box.image.GetHeight() / 2; - progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); - - progress_bar.original_image = Image("progress_bar.png"); - progress_bar.sprite = Sprite(); - - progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; - #change here - progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.3 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; - progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); - - fun progress_callback (duration, progress) - { - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth(progress_bar.original_image) * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - - Plymouth.SetBootProgressFunction(progress_callback); -} -#----------------------------------------- Dialog -------------------------------- - -status = "normal"; - -fun dialog_setup() - { - local.box; - local.lock; - local.entry; - - box.image = Image("box.png"); - lock.image = Image("lock.png"); - entry.image = Image("entry.png"); - - box.sprite = Sprite(box.image); - box.x = Window.GetX() + Window.GetWidth() / 2 - box.image.GetWidth ()/2; - box.y = Window.GetY() + Window.GetHeight() / 2 - box.image.GetHeight()/2; - box.z = 10000; - box.sprite.SetPosition(box.x, box.y, box.z); - - lock.sprite = Sprite(lock.image); - lock.x = box.x + box.image.GetWidth()/2 - (lock.image.GetWidth() + entry.image.GetWidth()) / 2; - lock.y = box.y + box.image.GetHeight()/2 - lock.image.GetHeight()/2; - lock.z = box.z + 1; - lock.sprite.SetPosition(lock.x, lock.y, lock.z); - - entry.sprite = Sprite(entry.image); - entry.x = lock.x + lock.image.GetWidth(); - entry.y = box.y + box.image.GetHeight()/2 - entry.image.GetHeight()/2; - entry.z = box.z + 1; - entry.sprite.SetPosition(entry.x, entry.y, entry.z); - - global.dialog.box = box; - global.dialog.lock = lock; - global.dialog.entry = entry; - global.dialog.bullet_image = Image("bullet.png"); - dialog_opacity (1); - } - -fun dialog_opacity(opacity) - { - dialog.box.sprite.SetOpacity (opacity); - dialog.lock.sprite.SetOpacity (opacity); - dialog.entry.sprite.SetOpacity (opacity); - for (index = 0; dialog.bullet[index]; index++) - { - dialog.bullet[index].sprite.SetOpacity(opacity); - } - } - -fun display_normal_callback () - { - global.status = "normal"; - if (global.dialog) - dialog_opacity (0); - } - -fun display_password_callback (prompt, bullets) - { - global.status = "password"; - if (!global.dialog) - dialog_setup(); - else - dialog_opacity(1); - for (index = 0; dialog.bullet[index] || index < bullets; index++) - { - if (!dialog.bullet[index]) - { - dialog.bullet[index].sprite = Sprite(dialog.bullet_image); - dialog.bullet[index].x = dialog.entry.x + index * dialog.bullet_image.GetWidth(); - dialog.bullet[index].y = dialog.entry.y + dialog.entry.image.GetHeight() / 2 - dialog.bullet_image.GetHeight() / 2; - dialog.bullet[index].z = dialog.entry.z + 1; - dialog.bullet[index].sprite.SetPosition(dialog.bullet[index].x, dialog.bullet[index].y, dialog.bullet[index].z); - } - if (index < bullets) - dialog.bullet[index].sprite.SetOpacity(1); - else - dialog.bullet[index].sprite.SetOpacity(0); - } - } - -Plymouth.SetDisplayNormalFunction(display_normal_callback); -Plymouth.SetDisplayPasswordFunction(display_password_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprites = []; -message_sprite_count = 0; -message_sprite_y = 10; - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprites[message_sprite_count] = Sprite(my_image); - message_sprites[message_sprite_count].SetPosition(10, message_sprite_y, 10000); - message_sprites[message_sprite_count].text = text; - message_sprite_count++; - message_sprite_y += my_image.GetHeight(); -} - -fun hide_message_callback (text) -{ - for (i = 0; i < message_sprite_count; i++) - { - if (message_sprites[i].text == text) - message_sprites[i] = NULL; - } -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); - - diff --git a/mos/progress_bar.png b/mos/progress_bar.png deleted file mode 100644 index fd9977a..0000000 Binary files a/mos/progress_bar.png and /dev/null differ diff --git a/mos/progress_box.png b/mos/progress_box.png deleted file mode 100644 index 0c35c09..0000000 Binary files a/mos/progress_box.png and /dev/null differ