Skip to content

Commit

Permalink
add smaller icons and align with new theme (#395 #530 #561)
Browse files Browse the repository at this point in the history
* drop old icon used in app window
* regenerate smaller icons from new 256px source
  • Loading branch information
kevinhikaruevans authored and shiftkey committed Aug 11, 2024
1 parent 2506725 commit edebb7d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main-process/app-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from 'electron'
import { shell } from '../lib/app-shell'
import { Emitter, Disposable } from 'event-kit'
import { join } from 'path'
import { encodePathAsUrl } from '../lib/path'
import {
getWindowState,
Expand All @@ -18,7 +19,6 @@ import { URLActionType } from '../lib/parse-app-url'
import { ILaunchStats } from '../lib/stats'
import { menuFromElectronMenu } from '../models/app-menu'
import { now } from './now'
import * as path from 'path'
import windowStateKeeper from 'electron-window-state'
import * as ipcMain from './ipc-main'
import * as ipcWebContents from './ipc-webcontents'
Expand Down Expand Up @@ -77,7 +77,7 @@ export class AppWindow {
} else if (__WIN32__) {
windowOptions.frame = false
} else if (__LINUX__) {
windowOptions.icon = path.join(__dirname, 'static', 'icon-logo.png')
windowOptions.icon = join(__dirname, 'static', 'logos', '512x512.png')

// relax restriction here for users trying to run app at a small
// resolution and any other side-effects of dropping this restriction are
Expand Down
Binary file removed app/static/linux/icon-logo.png
Binary file not shown.
Binary file added app/static/logos/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/logos/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/logos/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions script/package-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ const options: DebianOptions = {
'gnome-keyring',
],
icon: {
'32x32': 'app/static/logos/32x32.png',
'64x64': 'app/static/logos/64x64.png',
'128x128': 'app/static/logos/128x128.png',
'256x256': 'app/static/logos/256x256.png',
'512x512': 'app/static/logos/512x512.png',
'1024x1024': 'app/static/logos/1024x1024.png',
Expand Down
3 changes: 3 additions & 0 deletions script/package-redhat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const options: RedhatOptions = {
'gnome-keyring',
],
icon: {
'32x32': 'app/static/logos/32x32.png',
'64x64': 'app/static/logos/64x64.png',
'128x128': 'app/static/logos/128x128.png',
'256x256': 'app/static/logos/256x256.png',
'512x512': 'app/static/logos/512x512.png',
'1024x1024': 'app/static/logos/1024x1024.png',
Expand Down

0 comments on commit edebb7d

Please sign in to comment.