summaryrefslogtreecommitdiff
path: root/themes
AgeCommit message (Collapse)AuthorFilesLines
2020-07-09autogoo: use /proc/self/fd/0 instead of /dev/stdinRay Strode2-2/+2
The symlink isn't available in some sandboxes: https://gitlab.gnome.org/GNOME/gnome-build-meta/-/commit/99bf64efdc5a2d5c5fdedb627967b931d02be3d0#note_860312
2020-07-08po: drop intltool usageRay Strode4-18/+23
gettext can do most everything intltool can do anyway, so just drop intltool.
2020-03-11two-step: Add UseEndAnimation settingHans de Goede2-0/+12
We try to start the end animation early based on our progress accounting but this is highly unreliable because e.g.: -It counts time to enter the diskcrypt passwd as normal boot time, while this varies wildly from boot to boot -Boot times for laptops can differ significantly between docked / undocked state Between gdm calling /bin/plymouth deactivate and the drm plugin's deactivate method getting called there can be e.g. 2.1 seconds (from a random boot), with a theoretical maximum of 3 seconds (2 seconds to finish the throbber + 1 second for the end animation). On a modern system userland boot should be able to finish in say 5 seconds, making gdm wait an additional 1 - 3 seconds for deactivation is a huge amount of extra wait time! This commit adds a new "UseEndAnimation" option to the two-step plugin, which defaults to true. Setting this to false makes deactivation immediate. This works nicely with the spinner (and bgrt) themes since we do not really do anything special in the end animation there anyways and since we fade-over into gdm things will still look ok, while shaving a signifcant chunk of our boot time. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2020-03-10themes: Drop UseFirmwareBackground=true from spinner/bgrt firmware-upgrade ↵Hans de Goede2-2/+0
settings The spinner theme should never have UseFirmwareBackground=true and in the bgrt case we should not use it for modes which set a Title as the Title location will conflict with the firmware background vendor logo. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-10-15themes: spinner/bgrt: Modify password dialog to match gnome 3.34 changesHans de Goede8-1/+1
There have been some small tweaks to the gnome lockscreen password entry filed which we use as template for the diskcrypt password dialog, adjust our dialog to match these tweaks. Also move the keyboard indicator to be close to the entry, so that it is clear it belongs to the entry. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-10-01themes: Add images for keyboard indicator support to spinner and spinfinityHans de Goede11-0/+30
Add capslock.png, keyboard.png and keymap-render.png files to the spinner and spinfinity themes, this enables keyboard indicator (keymap and capslock state) support for these themes. capslock.png was made by me drawing the icon in xfig, then export as svg, at some blank rows at the bottom and save as png. I've added the capslock.fig file to the spinner theme dir. keyboard.png comes from google's material-design-icons (original is apache licensed): https://github.com/google/material-design-icons/ I've also added a copy of the 2 svg source files to the spinner theme dir. keymap-render.png is generated by scripts/keymap-render.py. Fixes: #85 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-09-27themes: Move spinifity from the throbgress splash to the two-step splashHans de Goede37-2/+41
At one point in time the two-step splash plugin was forked from the throbgress splash. Since then the two-step plugin has grown to be more flexible / configurable. The two-step plugin is now flexible enough that with the right config it can mimick the throbgress plugin. Moving the spinifity theme to use the two-step plugin allows us to remove the throbgress plugin, removing the code duplication between the 2 plugins. An added advantage of this is that the two-step plugin has more functionality, such as capslock indicator support for the password dialog. Note the throbber-??.png images were modified to add 24 transparant rows at the top, to get the extra hardcoded throbber-height / 2 space which the throbgress plugin added between the throbber and the header-image, this was done automatically using the following command: convert old.png -background transparent -gravity northwest -splice 0x24 new.png Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-05-29Add a new firmware-upgrade mode for use by fwupdRichard Hughes2-0/+16
This allows us to have accurate localised text, and also to use the vendor BIOS logo when applying firmware updates.
2019-03-25themes: Update spinner and bgrt background settingsHans de Goede4-5/+4
Update the spinner and bgrt themes background to solid black so that we get the same background, independent of whether the firmware-splash (ACPI BGRT extension) is available and to closer match the mock-ups from: https://wiki.gnome.org/Design/OS/BootProgress Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-02-26Prefix Title and Subtitle theme config keywords with an underscoreHans de Goede2-8/+8
Prefix Title and Subtitle theme config keywords with an underscore ('_') so that "intltool-extract --type=gettext/ini" can be used to make the title and subtitle translatable. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-02-26Add new reboot and system-upgrade modesHans de Goede2-0/+17
Some themes show certain text strings to the user depending on the mode, see e.g. the shutdown vs reboot mockups of: https://wiki.gnome.org/Design/OS/BootProgress Besides during shutdown vs reboot, we also want different theming for installing offline (security) updates versus doing an offline OS upgrade. To make this possible this commit adds new reboot and system-upgrade modes which can be specified either when starting plymouthd, or through plymouth change-mode --<mode>. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-02-25two-step: Make ProgressBarShowPercentComplete a per mode settingHans de Goede2-2/+2
Make ProgressBarShowPercentComplete a per mode setting, this gives the theme more flexibility wrt which messages to show in different modes. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-02-23themes: Update spinner and bgrt theme offline updates modeHans de Goede2-3/+32
Make the spinner and bgrt offline updates mode match the GNOME design mockups from: https://wiki.gnome.org/Design/OS/BootProgress Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-02-23two-step: Add per mode settingsHans de Goede1-1/+9
We want theme files to be able to specify different settings for different modes ("boot-up" / "shutdown" / "updates"). Specifically we want themes to be able to specify a text for (offline) updates mode to tell the user what is going on, see the mockups at: https://wiki.gnome.org/Design/OS/BootProgress This commit adds support for per mode settings to the two-step plugins and for starters moves the UseFirmwareBackground setting there, since we don't want to show the firmware-background when showing the help-text. Follow-up commits will add support for specifying the (optional) per mode text to show, note eventually we will need to make these texts translatable. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-01-16themes: Update spinner and bgrt diskcrypt dialogHans de Goede5-1/+0
Update the spinner and bgrt themses diskcrypt dialog to match the dialog from the "Disk decrypt" mockup from: https://wiki.gnome.org/Design/OS/BootProgress Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-01-16themes: spinner: Add watermark alignment settingsHans de Goede1-0/+2
Add watermark alignment settings, so that distros can simply drop a watermark.png into the theme dir from another package and then have it show up in the right place. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-01-16themes: bgrt: Remove duplicate imagesHans de Goede73-74/+1
The bgrt theme is using the exact same images as the spinner theme, remove these and point ImageDir to the spinner theme dir instead. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-01-09two-step: Make clearing the dialog-background when using the firmware ↵Hans de Goede1-0/+1
background optional Since the ask-for-password or ask-question dialog and the firmware background may intersect so far we've been clearing the screen to black when showing a dialog and using the firmware background. This is not always desirable, this commit adds a new "DialogClearsFirmwareBackground" option to the two-step based theme config file, which enables this behavior when set. The new default is to keep using the initial (firmware) background when showing a dialog, which matches the non firmware-background paths. Also update the bgrt theme to use the "DialogClearsFirmwareBackground" option, keeping the current behavior for that theme. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2019-01-09two-step: Rename UseBGRT to UseFirmwareBackgroundHans de Goede1-1/+1
Rename the UseBGRT theme configfile option to UseFirmwareBackground, to make it clear what this does using language which most users will be able to understand, rather then using the cryptic BGRT ACPI table reference. While at it also switch to using the new ply_key_file_get_bool function, so that users can edit an existing configfile with "UseFirmwareBackground=true" in there and change it to "=false" and actually have that work as expected. The switch to ply_key_file_get_bool also fixes a memleak as ply_key_file_get_value returns a strdup-ed value which we were not free-ing. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2018-11-27themes: Add new BGRT theme, using the firmware boot splash as backgroundHans de Goede74-1/+101
Add a new BGRT theme, this is a copy of the spinner theme, using the ACPI BGRT graphics (firmware boot splash) as logo when available. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2018-11-23spinner theme: updateJakub Steiner71-1/+302
- update spinner & lock to current visuals Hans de Goede: Add extra throbber-00##.png files to Makefile.am, small tweak to the new lock image.
2016-05-20script: only support one message at a timeRay Strode1-13/+5
That's the other themes do, and callers expect it.
2015-02-03spinner: Add noise textureBastien Nocera2-0/+1
As per GNOME mockups: https://wiki.gnome.org/Design/OS/Boot https://bugs.freedesktop.org/show_bug.cgi?id=88888
2013-09-23Make contact the default text pluginWilliam Jon McCann9-12/+12
And rename the old text plugin "tribar" https://bugs.freedesktop.org/show_bug.cgi?id=55286
2013-09-23Add contact pluginWilliam Jon McCann4-1/+10
https://bugs.freedesktop.org/show_bug.cgi?id=55286
2011-03-23splash: add new spinner themeRay Strode56-1/+79
This is a very simple theme with a small spinner on a dark background.
2010-09-07script: Implement hide message function in the example script themeCharlie Brej1-5/+20
This leaves ugly spaces where messages used to be, but is simple.
2010-04-21[script] Allow passing of values from the .plymouth file to the scriptCharlie Brej1-1/+4
An example in the script.plymouth shows a value being set. These values are then present at the first execution of the script set in the global scope.
2010-03-22[script] Update default script to use the window X and Y offsets every timeCharlie Brej1-8/+8
Previously the code was assuming the windows were placed at 0,0. This might not be the case and the window X and Y values should be used when trying to position items relative to a window. This change needs to be applied to all other scripts otherwise mutiple screen setups may have unaligned elements. Updates scripts should be tested using multi-head test systems or the x11 test renderer.
2009-11-21[script] Add text to image capabilityCharlie Brej1-1/+14
Enables scripts to display test by converting it into an image. This can then be shown using a sprite. Function takes a string and the value of the three colors (red green blue). new_image = Image.Text("text we want", 1.0, 0.0, 0.0); // gives red text image
2009-10-29[script] Convert example script functions to use objectsCharles Brej1-7/+7
The example script had some old style function names. These still work due to the compatibility translations, but are not recommended in new code.
2009-10-28[script] Add an "on quit" callback to scripted themesCharlie Brej1-0/+9
The callback is called before the final sprite refresh and quit. This allows the theme to tidy up the screen before handing over to the X fade and the destop manager.
2009-09-09[script] Example script rewritten to use the object systemCharlie Brej1-55/+49
2009-08-25[glow] Soften corners of entry boxRay Strode1-0/+0
They (somewhat) have the illusion of roundness now.
2009-08-25[glow] Update bullet to be more like GTK+ defaultRay Strode1-0/+0
It makes things look more consistent.
2009-08-25[script] use dialog instead of dialogueFrederic Crozat1-26/+26
2009-08-18[script] Display password dialog even if called twiceFrederic Crozat1-1/+4
2009-08-05[splash] do not ship generated files in tarballFrederic Crozat5-5/+9
2009-07-24[gitignore] Unignore some .plymouth filesRay Strode2-0/+2
There are a couple of .plymouth files that aren't generated, so we shouldn't ignore them.
2009-07-24[script] Tidy up the example scriptCharlie Brej1-158/+84
Removes the spinfinity function as it used an ugly ../ path to get the images and assumed that spinfinity was installed. Removes some elements which were only inserted for testing.
2009-07-24[script] Add support for setting the window background colorCharlie Brej1-2/+5
Two functions set the color of either the bottom or the top of the screen. If the two colors are equal a solid colour draw is used. The color is supplied by three floats specitying red green and blue elements.
2009-07-24[script] Add support for getting the window width and heightCharlie Brej1-25/+27
The example script has been updated to use this as well as to use other features recently committed.
2009-07-24[script] Add an example progress bar to the example scriptCharlie Brej4-1/+49
2009-07-24[script] Implement script based fade_in implementationCharlie Brej1-35/+67
The example script now can show a spinfinity or a fade_in behaviour. This is just to see how easy it is to implement current plugins. In the case of fade_in it is around 23 lines of script code
2009-07-24[script] Add support for 'for'Charlie Brej1-7/+3
Matches the use in C as "for (first, condition, last)" where first is executed once, last is executed at the end of each iteration (even when continue is executed) and condition is tested at the start of every cycle.
2009-07-24[script] Add support for loading the system logo imageCharlie Brej1-1/+9
This is done specifying the filename is special://logo. Not sure if this is the best way of implementing but it is expandable to other special files.
2009-07-24[script] Add support for the password dialogue in the example script themeCharlie Brej6-60/+118
2009-07-24[script] Allow scripts to attach themselves to plymouth plugin callbacksCharlie Brej1-8/+35
The scripts can now attach themselves to the following callbacks: refresh, boot_progress, root_mounted, keyboard_input, update_status, display_normal, display_password and display_question.
2009-07-24[scan] Add block commentsCharlie Brej1-1/+1
Treats "/*" and "*/" as block comment markers. Block comments may be nested. There is a bug where if a comment or a string is not terminated before the end of a file, the scanner deadlocks. Need to add a way or reporting scanner errors to the parser.
2009-07-24[scan] Add parsing of line commentsCharlie Brej1-0/+3
These are currently hard coded to '//' and '#'. The code is there to return them to the caller but currently they are thrown away. Should add a skip_comments option and allow customisable markers.