Commit Graph

23 Commits

Author SHA1 Message Date
Manav Rathi
cd072113bb [desktop] Windows icon - Take 3
Resize to make it fit better with the other icons in the start menu.
2025-04-08 10:56:02 +05:30
Manav Rathi
424fbf1169 [desktop] Match windows icon with macOS icon
Previously in https://github.com/ente-io/ente/pull/5551 the icon.ico was
generated from icon.png. In this PR, based on user feedback we instead generate
it from the icon.icns (the same as that used by the macOS app) - this one has
rounded corners.
2025-04-08 07:46:55 +05:30
Manav Rathi
9a36c24227 [destkop] Add windows icon variant
Generated from icon.png using https://www.icoconverter.com/

Even though the docs (https://www.electron.build/icons.html) say that the
icon.png should automatically get used, in practice it seems to generate start
menu icons that are blurry.

The recommendation from the maintainer
(https://github.com/electron-userland/electron-builder/issues/7328#issuecomment-1499884818)
is to provide an .ico variant that'll get used for Windows.

I'm not sure if it is necessary to also mention this explicitly in the build
config. From reading the docs
(https://www.electron.build/electron-builder.interface.windowsconfiguration#icon),
'build/icon.ico' should be the default, so trying first by just adding the file.
2025-04-07 11:59:40 +05:30
Manav Rathi
9319aeee6f Update icons
general note of commands which were needed:

    mkdir build/icon.iconset
    touch build/icon.iconset/icon_512x512@2x.png
    iconutil --convert icns --output build/icon.icns build/icon.iconset
    # general resizing
    sips -Z 48 build/taskbar-icon@3x.png

for the icns while just the above worked, here is fuller script that also uses
the size variants (rom
https://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil),
the final asset used this.

    mkdir MyIcon.iconset
    sips -z 16 16     Icon1024.png --out MyIcon.iconset/icon_16x16.png
    sips -z 32 32     Icon1024.png --out MyIcon.iconset/icon_16x16@2x.png
    sips -z 32 32     Icon1024.png --out MyIcon.iconset/icon_32x32.png
    sips -z 64 64     Icon1024.png --out MyIcon.iconset/icon_32x32@2x.png
    sips -z 128 128   Icon1024.png --out MyIcon.iconset/icon_128x128.png
    sips -z 256 256   Icon1024.png --out MyIcon.iconset/icon_128x128@2x.png
    sips -z 256 256   Icon1024.png --out MyIcon.iconset/icon_256x256.png
    sips -z 512 512   Icon1024.png --out MyIcon.iconset/icon_256x256@2x.png
    sips -z 512 512   Icon1024.png --out MyIcon.iconset/icon_512x512.png
    cp Icon1024.png MyIcon.iconset/icon_512x512@2x.png
    iconutil -c icns MyIcon.iconset
    rm -R MyIcon.iconset

for the taskbar icons I used this ad-hoc script:

    #!/bin/sh

    set -e

    sips -Z 16 ~/Downloads/Taskbar.png --out build/taskbar-icon.png
    sips -Z 32 ~/Downloads/Taskbar.png --out build/taskbar-icon@2x.png
    sips -Z 48 ~/Downloads/Taskbar.png --out build/taskbar-icon@3x.png

    sips -Z 16 ~/Downloads/Taskbar-Template.png --out build/taskbar-icon-Template.png
    sips -Z 32 ~/Downloads/Taskbar-Template.png --out build/taskbar-icon-Template@2x.png
    sips -Z 48 ~/Downloads/Taskbar-Template.png --out build/taskbar-icon-Template@3x.png
2025-03-25 09:04:04 +05:30
Manav Rathi
f003b4f8ac [desktop] Update version and link 2025-02-12 06:52:12 +05:30
Manav Rathi
e0eae10007 Use URL instead of repeating contents 2025-01-22 12:41:39 +05:30
Manav Rathi
3d2b8974df Temporary tracing 2025-01-21 16:24:03 +05:30
Manav Rathi
0309db9466 [desktop] Include branding colors in Flathub MetaInfo
https://docs.flathub.org/blog/introducing-app-brand-colors/#adding-brand-colors
2025-01-20 14:04:21 +05:30
NN708
03903ae605 [desktop] Add MetaInfo 2025-01-17 11:08:18 +08:00
Manav Rathi
e4bc206d6a [desktop] Revert to 1.6.63 Linux icon behaviour
https://github.com/ente-io/ente/issues/1909
2024-06-04 12:30:05 +05:30
Manav Rathi
cab8660446 [desktop] (Maybe) fix the dock icon on Linux
Ref: https://github.com/ente-io/ente/issues/1909

build/icons/512-512.png is just a 1/2 copy of build/icons.png.
2024-06-01 20:05:35 +05:30
Manav Rathi
11451efffd Restore macOS icon
git checkout 42679bc9daa4108681683079f4cb1f2832f4578c~ -- build/icon.icns
2024-04-10 20:32:32 +05:30
Manav Rathi
6a7220ca43 Remove support files for (removed) Windows GGML binary
These were added together with the GGML Windows binary in commit
c3887847bc.
2024-04-09 21:32:41 +05:30
Manav Rathi
4327cfdb23 Only ONNX, desktop 2024-04-09 20:46:27 +05:30
Manav Rathi
42679bc9da Remove duplicated icon
Per https://www.electron.build/icons, a single 512x512 icon.png placed in the
buildResources directory (default `build`) is enough to generate icons for all
three - macOS, Windows and Linux.
2024-03-27 15:00:25 +05:30
Manav Rathi
88e8e1a18d Remove hacky splash window with a background color
...hacky because it was using a timer instead of the "ready-to-show" event
(which wasn't getting fired for some reason). It is recommended that we set a
background color anyway.
2024-03-26 21:45:21 +05:30
Manav Rathi
0634727ef3 Remove unused file
From my understanding, this was accidentally leftover from 3c8af97f69
2024-03-20 10:34:17 +05:30
Manav Rathi
b3289f2b8d Remove (kindof) unused reloadWindow IPC
We now bundle the renderer code within the app. So a load-fail indicates
something really wrong, not something we can deal with upfront (the code wasn't
probably even working - e.g. it was assigning to a function parameter
mainWindow, not the actual global var behind it).
2024-03-19 19:18:05 +05:30
Manav Rathi
a5e6f0cc30 Let Prettier 3 have a go at it 2024-03-12 18:01:09 +05:30
Manav Rathi
d7cd2cecbc Default buildResources is build 2024-03-12 16:12:53 +05:30
Manav Rathi
027ae1cfb9 build => resources 2024-03-11 17:37:43 +05:30
Manav Rathi
88741083fe Prettier 3 + reformat (same as web) 2024-03-11 16:46:52 +05:30
Manav Rathi
1ac5222b09 Move into desktop/ 2024-03-01 12:36:35 +05:30