Skip to content

Commit

Permalink
Merge pull request #4 from strvcom/fix/image-size
Browse files Browse the repository at this point in the history
[fix]: image size
  • Loading branch information
cernym46 authored Nov 1, 2023
2 parents 6ff05a5 + ee25778 commit f021405
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/VersionIcon/VersionIconDefinitions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ func generateIcon(

let version = getVersionText(appSetup: appSetup, designStyle: designStyle)

let newSize = CGSize(width: realSize.width / 2, height: realSize.height / 2)
let scaleFactor = NSScreen.main?.backingScaleFactor ?? 2

let newSize = CGSize(
width: realSize.width / scaleFactor,
height: realSize.height / scaleFactor
)

// Resizing ribbon
let resizedRibbonImage = resizeImage(fileName: designStyle.ribbon, size: newSize)
Expand Down

0 comments on commit f021405

Please sign in to comment.