-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix logo issues #2184
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
Fix logo issues #2184
Conversation
|
Possibly weirdly, I can't really spot the difference between them. 😉 That being said, I've no objection to this at all. Is it ready for merging? |
|
Ahhh, there's a reference to the old filename in snapcraft.yml: That'll likely need updating too. 😄 |
Same. When they are put like this next to each other it is hard to tell. But I found a way! 😃 Open both (before and after) on different tabs next to each other and quickly switch between them to see the difference. 😄 Or make a GIF. Here is an example (from the first change only) ... Here's the full change... |
|
@revolter Nice job. The logo looks better now. 👍 |
|
Ahhh. Good thinking. That makes it obvious. 😄 Agreed, good stuff. Definite improvement! |
I'll fix it tonight |
|
That top outline bugged me for so long :)) |
|
Fixed. Please let me know if there are other images that need to be exported from the new SVG, and I will do so. |
|
Good thinking. Doing a quick look through the repo for other likely exports of the same icon file shows up these: General
Windows installer pieces
macOS installer pieces |
|
Not sure about the macOS icon file, but the others should be fairly simple to regenerate. 😄 |
iconsets: CMake I've done elsewhere to automate... |
|
Cool. 😄 Not sure how that icon was first generated. Knowing me, it was probably using some output format of either Inkscape or Gimp. But no guarantees. 😄 |
|
It's not really well publicized "how to" make a mac icon. Process has similarities to Windows icon file creation. Secret sauce to success for both is to start with a large pixel count, high-res image and scale down accordingly. If you noticed in the code posted above, sips does the heavy lifting to scale down an image on macos (in lieu of imagemagick/GraphicsMagick/gimp et al). iconutil slaps all the images together into a single file. |
|
Looking at the gifs, it's a bit jarring to see the movement. Any chance you can keep the cylinders in place and make the shading fade in/out? |
Or with a SVG file. |
I don't understand this. The GIF was made for reference only. You can download the versions of the |
I think the movement is on purpose, with the main cylinder piece being "incorrect" by a small amount in the original. eg it's being moved into the correct place |
IIRC, sips doesn't work with svg's. Nor does windows ico( I think?). Sure. Create the large pixel count, high-res image as an svg but ultimately the svg would have to be exported to a png/jpg for image container generation. |
Actually, it looks like it was centered correctly before. I will look into this. |
|
The gif observation is just that. An observation. Having "disc cylinders" moving laterally (virtual or physical) was always a bad thing in my experience. 😉 |
Then we should use ImageMagick instead of sips, if we want to automate it. |
Imagemagick adds a dependency whereas sips/iconutils is apart of mac os system. |
But exporting different sized images from a bitmap is lossy, whereas exporting them from a SVG is lossless. |
|
I think the "only svg" stance is a bit overzealous. Besides, sips/gimp/imagemagick et al do a good job of scaling down the svg image to size before exporting. Honestly, does it really matter if the 16px^2 image is highly accurate rendition of the original? |
|
My last point on the subject... If you have a look at https://commons.wikimedia.org/wiki/Comparison_of_icon_sets you can see the various flavours and styles being employed. Personally, I think Tango over-works the effort with shadings et al. Icons should not be a 48px re-interpretation of the |
|
...addendum to my last (opps) |
|
@justinclift, Do you have any idea why is this icon darker than the default one? |
|
Awesome. 😄 |
|
@justinclift, I think this is done, except the OS/2 icon. Let me know it everything is ok. I also documented all the changes and steps that I did in the PR's description, for future references. @TeLLie, You could add the OS/2 icon directly to this PR, or you could send it here and I'll commit it. |
|
Hi
Where is the ico that I can use
|
|
I add it yesterday to this ticket
|
|
Oh, I'm not seeing it. Hmmm, would you be ok to email it to me and I'll make sure it gets in the system? 😄 |
|
Fine...let's discuss it here...
From your commentary I can infer that you are not familiar with software distribution. There are standards and best practices involved. The it doesn't matter in HTML philosophy doesn't fly with package maintainers. Last thing we want to do is incur their wrath. Also, not having a consistent sizing in line with expected practices reflects poorly on the project, IMO. This is your PR - I would encourage a re-think and better awareness of how downstream distributions expect stuff. Let's not make unnecessary work for others. |
Indeed.
We are not distributing SVG files, we are distributing PNG files.
But I did not change anything related to the size or document properties! The SVG file is like that since 2014.
I only changed the |
|
I guess the question here is "what do we need to do, in order to make the logo/images stuff easier for distributions?" Without going fully overboard and taking 3 full man years of effort kind of thing. 😄 |
Wasn't the distribution easy before I moved a bit some anchor points? |
|
Definitely. I'm just asking as a generic thing as @scottfurry sounds more knowledgeable than either of us in this area. I don't think there was anything wrong with your PR, but that doesn't mean we can't make things better for downstream packagers in a follow up one at some point. 😄 |
Of course, but in a separate PR, which would have nothing to do with the changes I made. |
|
Good point. 😄 |
|
I understand the submission was being done to address a problem you found. Great! For Gnome (predominant Linux unfortunately): https://developer.gnome.org/hig/stable/icon-design.html.en tl;dr version - keep icons square. stick to conventional sizes. don't bury stuff that someone else has to dig for to retrieve. Having a similar (or unrelated) image buried in the From a packaging perspective, the Take away here is consistency. |
I did keep them square. More exactly, I exported ALL of the rasterized images to the sizes that they had before this PR.
I don't know what you're talking about. The only image that I added is
A SVG file is a vector, not an image. Hence, the resolution is completely irrelevant.
So the issue is that I added that If so:
vs
If not, then, what is the actual issue caused by this PR? |
|
@revolter Pretty sure there's no actual issue caused by this PR, and @scottfurry is just trying to suggest improvements, but in a clumsy way. (sorry Scott) 😉 Lets move this conversation to a new issue, where we can discuss improving the current packaging images/logo, so things are easier for distributions? |
|
There is changes to the tree that also impact packaging/usage. I don't agree with your observations and opinions about svg but that's just definitions. However, let's make changes the tree to consider packaging expectations. |




To overcome an Inkscape issue in which it saves the SVG file by changing almost every other line in the file, I had to:
I did this to keep the Git diff as small as possible.
To update all the icons:
I opened Inkscape, then:
a. I opened the
images/logo.svgfileb. I selected
Object>Objects...c. I made sure that the
Batteryobject (layer) is selectedd. I selected
File>Export PNG Image...and then:
a. I selected
Drawing>Export>Replaceb. I selected
Page, set128for theWidthandHeight, set../installer/windows/resources/icon.pngfor theFilenameand then I selectedExport>c. I selected
Page, set256for theWidthandHeight, set../src/icons/sqlitebrowser.pngfor theFilenameand then I selectedExport>Replace``ReplaceI opened GIMP, I replaced the old icon layers with
images/logo.pngin:a.
installer/windows/resources/background.xcfb.
installer/windows/resources/banner.xcfI saved the XCF files and then I exported them to:
a.
installer/windows/background.bmpb.
installer/windows/banner.bmpI executed the scripts:
a.
installer/macos/export_icons_set.shb.
src/tools/create_windows_icon.shI copied
installer/macos/macapp.icnstosrc/macapp.icns.I asked @TeLLie to update
src/iconos2.ico.I opened related PRs in:
a. https://github.com/sqlitebrowser/website
b. https://github.com/sqlitebrowser/dbhub.io
First change:
Second change:
Third change:
Fourth change (minor):
The off-centering is caused by the fact that these are screenshots of the macOS' Preview app, and not the files themselves.