-
-
Notifications
You must be signed in to change notification settings - Fork 60
Change Granite.STYLE_CLASS_FOO to Granite.CssClass.FOO #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is marked as good first issue but doesn't detail where this change is needed (unless I am missing something). Is it in https://github.com/elementary/granite somewhere? I'd like to contribute but the developer guide seems like it is only for App developers. Is there a guide somewhere for contributing to the OS? I am an ex developer but looking for a project to contribute to and elementaryos is something I use. I would probably need some help getting an initial dev environment set up. Would someone be available to help with that? I am on the elementary community discord with the same username. |
Yes, the code changes required to resolve this issue would be made in this repository. Generally, issues are reported against the GitHub repository where the relevant code lives. And if they're not, a developer will generally move them to the right place. This issue is just about re-namespacing some of the constants in Granite. The existing constants live here: So to resolve this issue, the high level steps would be:
Compiling and testingFor each elementary repository on GitHub, the README will usually detail how to compile and install the code. So usually it's just a case of following those steps to build and test. Be aware that this will replace applications and libraries on your elementary OS system with the experimental version you just compiled. So, only do this on VMs or systems you don't mind experimenting with, or be prepared to recover your data if you break something 😅 Note that with some applications (namely the flatpak ones), it's possible to install multiple versions side by side and it's less risky. But as Granite is an underlying library, that's not the case here. I was going to drop this detail in Discord but it feels better to put it here so it's a bit more permanent. Feel free to ping me on Discord if you need any more detail with anything here though! |
There's also some good general docs about contributing here: |
@davidmhewitt Thanks. Can you assign this to me and I will make a start. If it becomes urgent for any reason please let me know - it will take me a while to get set up as I am still in the process of building a new linux box. For context, I am also new to Vala and any kind of GTK development. |
With regret, I've decided to abandon using elementaryOS as it just wasn't stable or flexible enough to suit my needs; I encountered quite a few bugs and frustrations which I really wanted to try and work through. and even help fix, but sadly, I've reached my frustration limit. I wish you and the rest of the team all the best. |
Problem
We used to use these C style constant names to match GTK, but they were all removed from GTK so there’s no need to do that anymore
Proposal
Granite.StyleClass.FOO
orGranite.CssClass.Foo
since these are used withGtk.Widget.add_css_class ()
Mark Deprecated:
STYLE_CLASS_ACCENT
STYLE_CLASS_BACK_BUTTON
STYLE_CLASS_CARD
STYLE_CLASS_CHECKERBOARD
STYLE_CLASS_DESTRUCTIVE_ACTION
STYLE_CLASS_DIALOG_CONTENT_AREA
STYLE_CLASS_H1_LABEL
STYLE_CLASS_H2_LABEL
STYLE_CLASS_H3_LABEL
STYLE_CLASS_H4_LABEL
STYLE_CLASS_SUCCESS
STYLE_CLASS_TITLE_LABEL
STYLE_CLASS_LINKED
STYLE_CLASS_DIM_LABEL
STYLE_CLASS_ERROR
STYLE_CLASS_MESSAGE_DIALOG
STYLE_CLASS_RICH_LIST
STYLE_CLASS_SUGGESTED_ACTION
STYLE_CLASS_WARNING
STYLE_CLASS_CIRCULAR
STYLE_CLASS_SMALL_LABEL
STYLE_CLASS_MODE_SWITCH
STYLE_CLASS_WARMTH
STYLE_CLASS_TEMPERATURE
STYLE_CLASS_BACKGROUND
STYLE_CLASS_BADGE
STYLE_CLASS_COLOR_BUTTON
STYLE_CLASS_DEFAULT_DECORATION
STYLE_CLASS_FRAME
STYLE_CLASS_KEYCAP
STYLE_CLASS_LARGE_ICONS
STYLE_CLASS_OSD
STYLE_CLASS_ROUNDED
STYLE_CLASS_SIDEBAR
STYLE_CLASS_TERMINAL
STYLE_CLASS_MENU
STYLE_CLASS_MENUITEM
STYLE_CLASS_FLAT
STYLE_CLASS_VIEW
Prior Art (Optional)
No response
The text was updated successfully, but these errors were encountered: