Patches for Yocto layers and components that do not have their own list
 help / color / mirror / Atom feed
From: "Gaël PORTAY" <gael.portay@gmail.com>
To: <yocto-patches@lists.yoctoproject.org>
Cc: "Gaël PORTAY" <gael.portay+rtone@gmail.com>
Subject: Re: [yocto-patches] [psplash][PATCH 2/2] Add configure flags to set colors
Date: Sun, 25 Oct 2026 08:22:14 +0100	[thread overview]
Message-ID: <DMDQLBOHOO5R.C6T162UJUITR@gmail.com> (raw)
In-Reply-To: <1879D2EAB5EE21E5.1334697@lists.yoctoproject.org>

Dear Maintainers,

I am just bumping this for visibility, I am sorry if this is not
appropriate.

Kind Regards,
Gaël

On Thu Nov 20, 2025 at 10:03 PM CET, Gaël PORTAY via lists.yoctoproject.org wrote:
> Added --with-text-color, --with-background-color, --with-bar-color, and
> --with-bar-background-color configure options to set colors without
> patching the code. Default colors are 0x6d,0x6d,0x70 for any text output
> and bar indicator, and 0xec,0xec,0xe1 for overall background.
>
> Signed-off-by: Gaël PORTAY <gael.portay+rtone@gmail.com>
> ---
>  configure.ac     | 32 ++++++++++++++++++++++++++++++++
>  psplash-colors.h |  8 ++++++++
>  2 files changed, 40 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index a64990a..d01afce 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -53,6 +53,38 @@ AS_IF([test "x$with_progress_bar_border_size" != "xyes"], [
>      EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_PROGRESS_BAR_BORDER_SIZE=$with_progress_bar_border_size"
>  ])
>  
> +AC_ARG_WITH([text-color],
> +    AS_HELP_STRING([--with-text-color=RED,GREEN,BLUE], [Set color of any text output (default is 0x6d,0x6d,0x70)]),
> +    [with_text_color=$withval],
> +    [with_text_color=0x6d,0x6d,0x70])
> +AS_IF([test "x$with_text_color" != "xyes"], [
> +    EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_TEXT_COLOR=$with_text_color"
> +])
> +
> +AC_ARG_WITH([background-color],
> +    AS_HELP_STRING([--with-background-color=RED,GREEN,BLUE], [Set color of overall background (default is 0xec,0xec,0xe1)]),
> +    [with_background_color=$withval],
> +    [with_background_color=0xec,0xec,0xe1])
> +AS_IF([test "x$with_background_color" != "xyes"], [
> +    EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_BACKGROUND_COLOR=$with_background_color"
> +])
> +
> +AC_ARG_WITH([bar-color],
> +    AS_HELP_STRING([--with-bar-color=RED,GREEN,BLUE], [Set color of the progress bar indicator (default is 0x6d,0x6d,0x70)]),
> +    [with_bar_color=$withval],
> +    [with_bar_color=0x6d,0x6d,0x70])
> +AS_IF([test "x$with_bar_color" != "xyes"], [
> +    EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_BAR_COLOR=$with_bar_color"
> +])
> +
> +AC_ARG_WITH([bar-background-color],
> +    AS_HELP_STRING([--with-bar-background-color=RED,GREEN,BLUE], [Set color of the progress bar background (default is 0xec,0xec,0xe1)]),
> +    [with_bar_background_color=$withval],
> +    [with_bar_background_color=0xec,0xec,0xe1])
> +AS_IF([test "x$with_bar_background_color" != "xyes"], [
> +    EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_BAR_BACKGROUND_COLOR=$with_bar_background_color"
> +])
> +
>  AC_ARG_ENABLE([img-fullscreen],
>      AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in fullscreen mode)]),
>      [enable_img_fullscreen=$enableval],
> diff --git a/psplash-colors.h b/psplash-colors.h
> index 82a9893..d6d19af 100644
> --- a/psplash-colors.h
> +++ b/psplash-colors.h
> @@ -12,15 +12,23 @@
>  #define _HAVE_PSPLASH_COLORS_H
>  
>  /* This is the overall background color */
> +#ifndef PSPLASH_BACKGROUND_COLOR
>  #define PSPLASH_BACKGROUND_COLOR 0xec,0xec,0xe1
> +#endif
>  
>  /* This is the color of any text output */
> +#ifndef PSPLASH_TEXT_COLOR
>  #define PSPLASH_TEXT_COLOR 0x6d,0x6d,0x70
> +#endif
>  
>  /* This is the color of the progress bar indicator */
> +#ifdef PSPLASH_BAR_COLOR
>  #define PSPLASH_BAR_COLOR 0x6d,0x6d,0x70
> +#endif
>  
>  /* This is the color of the progress bar background */
> +#ifdef PSPLASH_BAR_BACKGROUND_COLOR
>  #define PSPLASH_BAR_BACKGROUND_COLOR 0xec,0xec,0xe1
> +#endif
>  
>  #endif


      parent reply	other threads:[~2026-10-25  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-20 21:03 [psplash][PATCH 1/2] Add configure flags to set progression bar size Gaël PORTAY
2025-11-20 21:03 ` [psplash][PATCH 2/2] Add configure flags to set colors Gaël PORTAY
2025-11-20 21:03 ` [PATCH 1/2] Add configure flags to set progression bar size Gaël PORTAY
2025-11-20 21:03 ` [PATCH 2/2] Add configure flags to set colors Gaël PORTAY
     [not found] ` <1879D2EAB5EE21E5.1334697@lists.yoctoproject.org>
2026-10-25  7:22   ` Gaël PORTAY [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DMDQLBOHOO5R.C6T162UJUITR@gmail.com \
    --to=gael.portay@gmail.com \
    --cc=gael.portay+rtone@gmail.com \
    --cc=yocto-patches@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox