Skip to content

Commit ba60f0a

Browse files
authored
Apply server foreground colour to object counts (#9766) (#10041)
Apply muted server foreground colour to column type labels (#9766) Issue #9766 asked for both the object counts and the column type text to follow the server's custom foreground colour. The dynamic per-server CSS rule only recoloured the file-name and children-count spans, leaving the column type text (span.text-muted) at its default low-contrast colour. Recolour span.text-muted to a reduced-emphasis blend of the foreground colour using color-mix, so the datatype still reads as de-emphasised secondary text while following the server colour.
1 parent 9939d33 commit ba60f0a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

docs/en_US/release_notes_9_16.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Bug fixes
4848
| `Issue #9595 <https://github.com/pgadmin-org/pgadmin4/issues/9595>`_ - Fix missing ALTER ... SET DEFAULT statements for inherited columns in the generated table SQL/EDIT script.
4949
| `Issue #9677 <https://github.com/pgadmin-org/pgadmin4/issues/9677>`_ - Fix the Unlogged table toggle in table properties not generating any ALTER TABLE ... SET LOGGED/UNLOGGED statement.
5050
| `Issue #9762 <https://github.com/pgadmin-org/pgadmin4/issues/9762>`_ - Fix the "Cannot read properties of undefined (reading 'map')" crash in the desktop runtime when a menu refresh is triggered before the application menus have been received.
51+
| `Issue #9766 <https://github.com/pgadmin-org/pgadmin4/issues/9766>`_ - Fixed an issue where a server's custom foreground colour was not applied to the object counts (children count) and column type labels shown in the object explorer.
5152
| `Issue #9828 <https://github.com/pgadmin-org/pgadmin4/issues/9828>`_ - Fix tool calls failing against OpenAI-compatible providers that emit empty/null name, arguments, or id fields in streaming continuation deltas.
5253
| `Issue #9854 <https://github.com/pgadmin-org/pgadmin4/issues/9854>`_ - Fix the JSON editor stripping trailing fractional zeros (e.g. 10.00) and rewriting large integers in jsonb values, which corrupted unmodified numbers when saving.
5354
| `Issue #9868 <https://github.com/pgadmin-org/pgadmin4/issues/9868>`_ - Warn before opening a very large JSON/JSONB value in the data grid cell editor, which could freeze pgAdmin, and let the user choose whether to proceed.

web/pgadmin/browser/static/js/node.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,13 @@ define('pgadmin.browser.node', [
741741
background: ${bgcolor} !important;
742742
}
743743
${fgcolor ? `
744-
.${dynamic_class} span.file-name, .${dynamic_class} span.file-name:hover, .${dynamic_class} span.file-name.pseudo-active {
744+
.${dynamic_class} span.file-name, .${dynamic_class} span.file-name:hover, .${dynamic_class} span.file-name.pseudo-active,
745+
.${dynamic_class} span.children-count {
745746
color: ${fgcolor} !important;
746747
}
748+
.${dynamic_class} span.text-muted {
749+
color: color-mix(in srgb, ${fgcolor} 65%, transparent) !important;
750+
}
747751
`:''}
748752
`;
749753

0 commit comments

Comments
 (0)