Skip to content

Replace full-widget background coloring with color indicator button#84

Merged
lachlangrose merged 3 commits intomainfrom
copilot/change-strat-column-colouring
Feb 19, 2026
Merged

Replace full-widget background coloring with color indicator button#84
lachlangrose merged 3 commits intomainfrom
copilot/change-strat-column-colouring

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Stratigraphic column text was unreadable when unit colors (e.g., dark blue, black) colored the entire widget background.

Changes

  • UI: Added 40px buttonColour widget as column 0, shifts existing fields right
  • Styling: Color now applied only to button via _update_colour_button() instead of widget-level setStyleSheet()
  • Interaction: Button click opens color picker; removed mouseDoubleClickEvent() handler
# Before: entire widget colored
self.setStyleSheet(f"background-color: {self.colour};")

# After: only button colored  
def _update_colour_button(self):
    self.buttonColour.setStyleSheet(
        f"background-color: {self.colour}; border: 1px solid #999;"
    )

No API changes. Existing data and signals unchanged.

Original prompt

This section details on the original issue you should resolve

<issue_title>Change stratigraphic column colouring</issue_title>
<issue_description>### Feature description

Sometimes hard to read the stratigraphic column names with contrast

Additional context

No response</issue_description>

<agent_instructions>Change from colouring the whole list item to just having a colour button on the stratigraphic unit. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: lachlangrose <7371904+lachlangrose@users.noreply.github.com>
Copilot AI changed the title [WIP] Change stratigraphic column colouring for better readability Replace full-widget background coloring with color indicator button Feb 19, 2026
Copilot AI requested a review from lachlangrose February 19, 2026 02:02
@lachlangrose lachlangrose marked this pull request as ready for review February 19, 2026 03:00
@lachlangrose lachlangrose merged commit 4a79cf6 into main Feb 19, 2026
3 of 4 checks passed
@lachlangrose lachlangrose deleted the copilot/change-strat-column-colouring branch February 19, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change stratigraphic column colouring

2 participants

Comments