From 9496ef2cdcdaf69ee71da7791f6db53c2311fb17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 2 Mar 2023 01:06:28 +0100 Subject: [PATCH] The background color of a selected row now overrides the background color of its cells. [GB.WEB.GUI] * BUG: The background color of a selected row now overrides the background color of its cells. * BUG: WebTable: Use white text for the index column of selected rows. --- comp/src/gb.web.gui/.src/Test/Webform1.class | 2 ++ comp/src/gb.web.gui/.src/Test/Webform1.webform | 2 +- comp/src/gb.web.gui/style.css | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/comp/src/gb.web.gui/.src/Test/Webform1.class b/comp/src/gb.web.gui/.src/Test/Webform1.class index e00faf08c..d8da8fa06 100644 --- a/comp/src/gb.web.gui/.src/Test/Webform1.class +++ b/comp/src/gb.web.gui/.src/Test/Webform1.class @@ -129,6 +129,8 @@ Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableDat If Not hStat Then Return $aStat[Row] = hStat Endif + + If hStat.Size < 1024 Then Data.Background = Color.Yellow Select Case Column Case 0 diff --git a/comp/src/gb.web.gui/.src/Test/Webform1.webform b/comp/src/gb.web.gui/.src/Test/Webform1.webform index 74d5223be..3bf544c72 100644 --- a/comp/src/gb.web.gui/.src/Test/Webform1.webform +++ b/comp/src/gb.web.gui/.src/Test/Webform1.webform @@ -165,7 +165,7 @@ Sortable = True } { btnTable WebButton - #MoveScaled(23,59,15,4) + #MoveScaled(14,62,15,4) Height = "1.5em" Visible = False Ignore = True diff --git a/comp/src/gb.web.gui/style.css b/comp/src/gb.web.gui/style.css index 11e21dd1d..f7158eacc 100644 --- a/comp/src/gb.web.gui/style.css +++ b/comp/src/gb.web.gui/style.css @@ -1132,3 +1132,11 @@ TD.gw-table-check { width: 100%; height: 100%; } + +TR.gw-selected > TD { + background-color: inherit !important; +} + +TR.gw-selected > TD.gw-table-index { + color: white; +}