Skip to content
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

cs-info: Add system icon #11090

Merged
merged 3 commits into from
Oct 17, 2022
Merged

cs-info: Add system icon #11090

merged 3 commits into from
Oct 17, 2022

Conversation

ItzSwirlz
Copy link
Contributor

A vendor can disable this. It simply adds a Gtk Image under
the system info data which can be configured
by a gschema.


examples:
Screenshot from 2022-08-19 22-01-32
Screenshot from 2022-08-19 22-00-16
Screenshot from 2022-08-19 21-59-10
Screenshot from 2022-08-19 21-58-11

(Of course, the dimensions would have to be adjusted correctly by the vendor. I just downloaded these online, so like the LM logo would need configuring)

A vendor can disable this. It simply adds a Gtk Image under
the system info data which can be configured
by a gschema.
@Secret-chest
Copy link
Contributor

The LM logo should be colourful.

@ItzSwirlz
Copy link
Contributor Author

The LM logo is not a default preset, i just downloaded it online and set the gschema (which the distro maintainers will set)


systemIconPath = getSystemIcon()
systemIcon = Gtk.Image.new_from_file(systemIconPath)
page.add(systemIcon)
Copy link
Member

Choose a reason for hiding this comment

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

Only add the image if a path is provided, otherwise you end up with:
image

Only use one gschema for the path. If none is specified, none will
be created.
@ItzSwirlz
Copy link
Contributor Author

gonna have to do some testing when I get home

If the icon path is left empty, it is actually just "", not None.
@ItzSwirlz
Copy link
Contributor Author

ItzSwirlz commented Oct 7, 2022

sorry - it's all good

@leigh123linux, @SparkyBluefang and @Fantu - ping to ensure you are aware of the attention needed to the gschema next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants