Init
commit
a7df26f543
Binary file not shown.
|
After Width: | Height: | Size: 870 B |
Binary file not shown.
|
After Width: | Height: | Size: 296 B |
@ -0,0 +1,8 @@
|
||||
[Plymouth Theme]
|
||||
Name=CutefishOS Logo
|
||||
Description=Simple plymouth theme.
|
||||
ModuleName=script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/cutefish-logo
|
||||
ScriptFile=/usr/share/plymouth/themes/cutefish-logo/cutefish-logo.script
|
||||
@ -0,0 +1,163 @@
|
||||
/*
|
||||
|
||||
Copyright (C) 2016 Uri herrera <uri_herrera@nitrux.in>
|
||||
Copyright (C) 2013 Frédéric Gaudet <fred@linuxmint.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Based on the script written by:
|
||||
Charlie Brej <cbrej@cs.man.ac.uk>
|
||||
|
||||
*/
|
||||
|
||||
/*Colors (RGB) are represented in the following way
|
||||
|
||||
Where RGB color code is expressed in percentage, i.e., 35, 35, 35 is equal to 0.035
|
||||
|
||||
*/
|
||||
|
||||
logo.image = Image("logo.png");
|
||||
Window.SetBackgroundTopColor (0.035, 0.035, 0.035);
|
||||
Window.SetBackgroundBottomColor (0.035, 0.035, 0.035);
|
||||
logo.sprite = Sprite(logo.image);
|
||||
logo.sprite.SetX (Window.GetWidth() / 2 - logo.image.GetWidth() / 2);
|
||||
logo.sprite.SetY (Window.GetHeight() / 2 - logo.image.GetHeight() / 2);
|
||||
logo.sprite.SetOpacity (1);
|
||||
logo.sprite.SetZ (10000);
|
||||
|
||||
|
||||
fun refresh (){
|
||||
|
||||
}
|
||||
|
||||
Plymouth.SetRefreshFunction (refresh);
|
||||
|
||||
|
||||
|
||||
|
||||
#----------------------------------------- Dialogue --------------------------------
|
||||
|
||||
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.GetWidth() / 2 - box.image.GetWidth ()/2;
|
||||
box.y = 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);
|
||||
|
||||
fun progress_callback (duration, progress)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Plymouth.SetBootProgressFunction(progress_callback);
|
||||
|
||||
#----------------------------------------- Quit --------------------------------
|
||||
|
||||
fun quit_callback ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Plymouth.SetQuitFunction(quit_callback);
|
||||
|
||||
|
||||
#----------------------------------------- Message --------------------------------
|
||||
|
||||
message_sprite = Sprite();
|
||||
message_sprite.SetPosition(10, 10, 10000);
|
||||
|
||||
fun message_callback (text)
|
||||
{
|
||||
my_image = Image.Text(text, 1, 1, 1);
|
||||
message_sprite.SetImage(my_image);
|
||||
}
|
||||
|
||||
Plymouth.SetMessageFunction(message_callback);
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 350 B |
Binary file not shown.
|
After Width: | Height: | Size: 476 B |
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
@ -0,0 +1,11 @@
|
||||
[Plymouth Theme]
|
||||
Name=Cutefish Text
|
||||
Description=CutefishOS
|
||||
ModuleName=text
|
||||
|
||||
[text]
|
||||
title=CutefishOS
|
||||
black=0x263238
|
||||
white=0xffffff
|
||||
brown=0x03A9F4
|
||||
blue=0x0277BD
|
||||
@ -0,0 +1,11 @@
|
||||
[Plymouth Theme]
|
||||
Name=Cutefish Text
|
||||
Description=Cutefish Text
|
||||
ModuleName=text
|
||||
|
||||
[text]
|
||||
title=CutefishOS
|
||||
black=0x263238
|
||||
white=0xffffff
|
||||
brown=0x03A9F4
|
||||
blue=0x0277BD
|
||||
@ -0,0 +1 @@
|
||||
./cutefish-logo
|
||||
@ -0,0 +1,5 @@
|
||||
cutefish-plymouth-theme (0.5) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release (CutefishOS) <support@cutefishos.com>
|
||||
|
||||
-- CutefishOS Packaging Team <support@cutefishos.com> Thu, 16 Sep 2021 02:31:42 +0800
|
||||
@ -0,0 +1 @@
|
||||
9
|
||||
@ -0,0 +1,11 @@
|
||||
Source: cutefish-plymouth-theme
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Reion Wong <reion@cutefishos.com>
|
||||
Build-Depends: debhelper (>=9)
|
||||
Standards-Version: 3.9.6
|
||||
|
||||
Package: cutefish-plymouth-theme
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Plymouth theme for CutefishOS.
|
||||
@ -0,0 +1,34 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: cutefish-plymouth-theme
|
||||
Source: https://github.com/cutefishos
|
||||
|
||||
Files: *
|
||||
Copyright: <years> <put author's name and email here>
|
||||
<years> <likewise for another author>
|
||||
License: GPL-3.0+
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2017 Alexis Lopez Zubieta <azubieta90@gmail.com>
|
||||
License: GPL-3.0+
|
||||
|
||||
License: GPL-3.0+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This package is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
||||
# Please avoid picking licenses with terms that are more restrictive than the
|
||||
# packaged work, as it may make Debian's contributions unacceptable upstream.
|
||||
@ -0,0 +1,2 @@
|
||||
cutefish-plymouth-theme_0.5_all.deb misc optional
|
||||
cutefish-plymouth-theme_0.5_amd64.buildinfo misc optional
|
||||
@ -0,0 +1,2 @@
|
||||
cutefish-logo /usr/share/plymouth/themes/
|
||||
cutefish-text /usr/share/plymouth/themes/
|
||||
@ -0,0 +1,47 @@
|
||||
#!/bin/sh -e
|
||||
# This script can be called in the following ways:
|
||||
#
|
||||
# After the package was installed:
|
||||
# <postinst> configure <old-version>
|
||||
#
|
||||
#
|
||||
# If prerm fails during upgrade or fails on failed upgrade:
|
||||
# <old-postinst> abort-upgrade <new-version>
|
||||
#
|
||||
# If prerm fails during deconfiguration of a package:
|
||||
# <postinst> abort-deconfigure in-favour <new-package> <version>
|
||||
# removing <old-package> <version>
|
||||
#
|
||||
# If prerm fails during replacement due to conflict:
|
||||
# <postinst> abort-remove in-favour <new-package> <version>
|
||||
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
update-alternatives \
|
||||
--install /usr/share/plymouth/themes/default.plymouth default.plymouth \
|
||||
/usr/share/plymouth/themes/cutefish-logo/cutefish-logo.plymouth 100 # \
|
||||
# --slave /lib/plymouth/themes/default.grub default.plymouth.grub \
|
||||
# /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.grub
|
||||
|
||||
update-alternatives \
|
||||
--install /usr/share/plymouth/themes/text.plymouth text.plymouth \
|
||||
/usr/share/plymouth/themes/cutefish-text/cutefish-text.plymouth 100
|
||||
|
||||
if which update-initramfs >/dev/null 2>&1
|
||||
then
|
||||
update-initramfs -u
|
||||
fi
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-deconfigure|abort-remove)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0 called with unknown argument \`$1'" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
exit 0
|
||||
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ "x$1" = xremove ]; then
|
||||
if which update-initramfs >/dev/null 2>&1
|
||||
then
|
||||
update-initramfs -u
|
||||
fi
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ "x$1" = xremove ]; then
|
||||
update-alternatives \
|
||||
--remove default.plymouth /usr/share/plymouth/themes/cutefish-logo/cutefish-logo.plymouth
|
||||
|
||||
update-alternatives \
|
||||
--remove text.plymouth /usr/share/plymouth/themes/cutefish-text/cutefish-text.plymouth
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/make -f
|
||||
# See debhelper(7) (uncomment to enable)
|
||||
# output every command that modifies files on the build system.
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
|
||||
# see FEATURE AREAS in dpkg-buildflags(1)
|
||||
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
|
||||
# see ENVIRONMENT in dpkg-buildflags(1)
|
||||
# package maintainers to append CFLAGS
|
||||
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
|
||||
# package maintainers to append LDFLAGS
|
||||
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
||||
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
|
||||
# dh_make generated override targets
|
||||
# This is example for Cmake (See https://bugs.debian.org/641051 )
|
||||
#override_dh_auto_configure:
|
||||
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
|
||||
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
Loading…
Reference in New Issue