[pve-devel] [PATCH installer] highlight focused button with dark orange

Stoiko Ivanov s.ivanov at proxmox.com
Tue Apr 13 13:00:06 CEST 2021


Thanks for the patch!
can see that it could help users, who (have to) navigate the installer
with a keyboard...

gave it a (very quick) spin with the check-pve make-target - in
general it seems ok to me

one thing that does not look too nice to me is the +/- buttons for integer
entry (click on Options in the HD selection window) - maybe those could be
a bit more toned down (only change the foreground in that case)



On Mon, 12 Apr 2021 16:28:38 +0200
Oguz Bektas <o.bektas at proxmox.com> wrote:

> idea was from community forum [0]
> 
> arbitrary css can be used to style the installer, for now just add the
> highlight feature.
> 
> [0]:
> https://forum.proxmox.com/threads/proxmox-installation-eye-catching-color.87440
> 
> Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
> ---
>  proxinstall | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/proxinstall b/proxinstall
> index 03f6ec7..e79f0c6 100755
> --- a/proxinstall
> +++ b/proxinstall
> @@ -25,6 +25,13 @@ use POSIX ":sys_wait_h";
>  
>  use ProxmoxInstallerSetup;
>  
> +my $css_provider = Gtk3::CssProvider->new();
> +my $display = Gtk3::Gdk::Display::get_default;
> +my $screen = Gtk3::Gdk::Display::get_default_screen($display);
> +Gtk3::StyleContext::add_provider_for_screen($screen, $css_provider, 600);
> +my $prox_theme = "button:focus {\nbackground-color: #000000;\ncolor: #FF4500;\n}";
> +$css_provider->load_from_data($prox_theme);
> +
>  my $setup = ProxmoxInstallerSetup::setup();
>  
>  my $opt_testmode;






More information about the pve-devel mailing list