[general]
name=Colour Layer Panel Text by Source
qgisMinimumVersion=4.2
qgisMaximumVersion=4.99
version=1.0.1
author=Ian Hay
email=sirianhay@gmail.com
description=Colours layer names in the Layers panel by data source (PostgreSQL database/service, GeoPackage, memory) without changing layer names, symbology, data sources, or project structure.
about=Adds a compact toggle to the Layers panel's own toolbar that colours each layer's name according to a user-defined set of rules matching PostgreSQL database or service name, plus fixed colours for GeoPackage and memory/temporary layers. Only real layer rows are coloured -- categorised legend entries beneath a layer are left in QGIS's normal text colour. The Configure dialog's rule table offers database/service names found in currently loaded layers as a dropdown, so rules are normally picked rather than typed.
category=Plugins
icon=icon.svg
experimental=True
deprecated=False
tags=layers,source,postgres,postgis,geopackage,legend,styling,layer panel
license=GPL-3.0-or-later
repository=https://github.com/ianhay/colour_layer_panel_text_by_source
tracker=https://github.com/ianhay/colour_layer_panel_text_by_source/issues
homepage=https://github.com/ianhay/colour_layer_panel_text_by_source
changelog=1.0.1 Added GPL-3.0-or-later LICENSE file and source-file license headers, and replaced every bare `except Exception: pass` with logging to the QGIS message log (flagged as a critical finding by the official repository's Bandit security scan) -- best-effort/cleanup failures are now recorded instead of silently discarded, while an unavoidable catch-all in the paint hot path is left untouched since it must never itself raise. | 1.0.0 First public release. Database-name categories are a fully user-editable list of database-name/service-name-to-colour rules (Configure dialog); no organisation-specific defaults ship with the plugin. Each rule's Value is an inline dropdown pre-filled with database/service names found in currently loaded PostgreSQL layers, so it is normally picked rather than typed, and stays editable for names not currently loaded. The colour toggle lives only on the Layers panel's own toolbar (falling back to the Plugins menu only if that toolbar cannot be found); the Plugins menu otherwise holds just the Configure entry. Colouring confirmed working against a real QGIS 4.2.0 install with PostgreSQL layers from multiple databases (some via authcfg, no service= connections tested yet). Fixed, during development, a rendering-attachment bug (QGIS installs its Layers-panel delegate per-column via setItemDelegateForColumn(), which must be detected and wrapped directly) and a legend-row/layer-row misclassification bug (QgsLayerTreeView.index2node() was found to be unreliable in this environment; row identification now uses only the confirmed-reliable layerForIndex()).
