Skip to content

Model Designer updates plus text colors#10787

Open
selmaVH1 wants to merge 6 commits intoqgis:masterfrom
selmaVH1:modeldesigner_updates
Open

Model Designer updates plus text colors#10787
selmaVH1 wants to merge 6 commits intoqgis:masterfrom
selmaVH1:modeldesigner_updates

Conversation

@selmaVH1
Copy link
Copy Markdown
Collaborator

@selmaVH1 selmaVH1 commented Mar 2, 2026

fix #10559
fix #10648

Text color codes for socket types added.
Changes (colors):

  • conf.py: registers custom text color roles globally and adds css for html output and latex commands for PDF output
  • qgis_docs.css: adds color definitions for all socket type colors

HTML
image

PDF
image


.. list-table::
:header-rows: 1
:widths: 25 35 40
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless there was already an order I didn't get, what about trying to sort the table to put close items closer, i.e. number-> text -> boolean -> enum -> vector -> raster -> file type -> others. We can also start with (boolean -> enum). Feel free to adjust suggestion.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I set the same order as in the issue report, but yes it makes sense to reorder it..

conf.py Outdated
Comment on lines +168 to +170
html_css_files = ['custom.css']
if html_context['isTesting'] or html_context['outdated']:
html_css_files = ['css/qgis_topbar.css']
html_css_files.append('css/qgis_topbar.css')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? I fail to find what the custom.css file refers to

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my mistake...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if there is a dedicated issue report for this or if it has already been described, but the docked panel on the right showing properties of the selected parameter seems to be a recent feature. Mind checking if it is documented, please? Thanks.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to address this in the another PR (related to #10814 )



Socket Types
............
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you add a subsection here, I'd suggest to split the section with more, otherwise, it looks weird to have a single subsection and part of the texts (starting from line 512) has nothing to do with your new section

conf.py Outdated
Comment on lines +167 to +170

html_css_files = ['css/qgis_docs.css']
if html_context['isTesting'] or html_context['outdated']:
html_css_files = ['css/qgis_topbar.css']
html_css_files.append('css/qgis_topbar.css')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think changing this block is necessary at all. I have hard time understanding the ideal structure for Sphinx and RTD theme but since qgis_docs.css is already referenced in its parent rtd_theme conf file, and the settings work, I'd be careful not to complicate the relations/dependencies.
Unless it's proved necessary.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed it is unnecessary... I'm learning how to do changes like this, so sorry for the mess 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Show the feature count flowing through a model inside the model designer (Request in QGIS) Styling the Model Designer

2 participants