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

Switch to high-quality assets #277

Draft
wants to merge 6 commits into
base: v1-2
Choose a base branch
from

Conversation

cipherboy
Copy link
Member

@cipherboy cipherboy commented Mar 24, 2021

Import SVGs from Tango project and re-export existing icons at 64x64 size. This should ensure they're sufficiently large for all display purposes.

Also included are three code changes:

  • Use SVG application icon instead of PNG; it is rarely loaded so there is no performance impact.
  • Mark runwrapper.sh.in executable, making build/runwrapper.sh executable as well.
  • Set AA_EnableHighDpiScaling; see https://doc.qt.io/qt-5/highdpi.html.

Resolves: #275

Unlike other assets, the application icon only gets loaded once. By
using the SVG, we can ensure the image is always sized appropriately
(and is suitably crisp) on all screens.

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
CMake copies the original file permissions during the templating
process; by marking runwrapper.sh.in executable (ok, it isn't really),
we end up with build/runwrapper.sh being marked executable as well.

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
Output was additionally run through pngcrush to ensure optimized file
sizes.

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
Re-export at 64x64 and pngcrush. Additionally, convert from an older
Inkscape SVG to SVG v1.1 format.

This includes the following icons:

 - benchmark from edit-paste,
 - edit-undo,
 - edit-redo,
 - group from folder,
 - value from text-x-generic,
 - rule from preferences-system

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
Started with Tango's x-office-spreadsheet, removed the database icon,
and added in the selection effect from the original Profile icon. This
remains faithful to the intent of the original icon while using
known-good assets from the Tango project as the base (and providing a
SVG as well for the future).

Resolves: OpenSCAP#275

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
This should enable SCAP Workbench to perform a little better when
operating on hi-dpi displays. See also:

https://doc.qt.io/qt-5/highdpi.html

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
@cipherboy cipherboy added this to the 1.2.2 milestone Mar 24, 2021
@cipherboy cipherboy self-assigned this Mar 24, 2021
@cipherboy cipherboy marked this pull request as draft March 24, 2021 02:07
@cipherboy
Copy link
Member Author

Interesting; this doesn't actually appear to resolve the issues on my laptop.

@matejak
Copy link
Contributor

matejak commented Aug 2, 2021

The PR would probably benefit from a rebase, as it fails to compile on F34 for me.

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.

Higher resolution UI assets?
2 participants