Skip to content

Replace deprecated STYLE_CLASS labels#268

Draft
ryonakano wants to merge 10 commits intomainfrom
ryonakano/fix-deprecated-css-class
Draft

Replace deprecated STYLE_CLASS labels#268
ryonakano wants to merge 10 commits intomainfrom
ryonakano/fix-deprecated-css-class

Conversation

@ryonakano
Copy link
Copy Markdown
Member

@ryonakano ryonakano commented Nov 29, 2025

  • Replace deprecated STYLE_CLASS_DIM_LABEL with CssClass.DIM
  • Replace deprecated STYLE_CLASS_SMALL_LABEL with CssClass.SMALL
  • Replace deprecated STYLE_CLASS_H3_LABEL with HeaderLabel.Size.H3

Replacing STYLE_CLASS_RICH_LIST with Granite.ListItem would be done in another PR because I suppose it requires more changes.

Requires elementary/granite#936 (stable CI is failing because this change in granite is not released yet)

@ryonakano ryonakano self-assigned this Dec 18, 2025
@ryonakano ryonakano requested a review from a team December 18, 2025 21:55
@ryonakano ryonakano moved this from In progress to Needs Review in OS 9 Dec 18, 2025
@ryonakano ryonakano removed their assignment Dec 18, 2025
@ryonakano ryonakano marked this pull request as ready for review December 18, 2025 21:55
Copy link
Copy Markdown
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Mostly good, just one comment

};

var grid = new Gtk.Grid () {
column_spacing = 6
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we need to also adjust this and there's significant changes to padding here:

BEFORE

Screenshot from 2025-12-18 14 46 27

AFTER

Screenshot from 2025-12-18 14 46 05

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I guess the cause of the unwanted margins are due to Granite.HeaderLabel itself, not the grid here, so maybe we need to fix this in Granite?

スクリーンショット 2025-12-19 21 10 47

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ryonakano
Copy link
Copy Markdown
Member Author

Converting to draft because this needs fixes in Granite first.

@ryonakano ryonakano marked this pull request as draft February 20, 2026 23:30
@ryonakano ryonakano moved this from Needs Review to In progress in OS 9 Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants