From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A8394724F4 for ; Mon, 12 Apr 2021 16:32:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 954E6209D4 for ; Mon, 12 Apr 2021 16:31:40 +0200 (CEST) Received: from gaia.proxmox.com (unknown [94.136.29.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id EC022209CC for ; Mon, 12 Apr 2021 16:31:39 +0200 (CEST) Received: from gaia.proxmox.com (localhost.localdomain [127.0.0.1]) by gaia.proxmox.com (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 13CESdr31332185; Mon, 12 Apr 2021 16:28:39 +0200 Received: (from oguz@localhost) by gaia.proxmox.com (8.15.2/8.15.2/Submit) id 13CESdKM1332184; Mon, 12 Apr 2021 16:28:39 +0200 From: Oguz Bektas To: pve-devel@lists.proxmox.com Date: Mon, 12 Apr 2021 16:28:38 +0200 Message-Id: <20210412142838.1332059-1-o.bektas@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 2 AWL 0.042 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods NO_DNS_FOR_FROM 0.379 Envelope sender has no MX or A DNS records RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH installer] highlight focused button with dark orange X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 14:32:10 -0000 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 --- 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; -- 2.20.1