Skip to content

Commit

Permalink
update image
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklandrin committed Feb 24, 2024
1 parent 6fb810d commit 2dc1dd0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions OnlyWidget/Assets.xcassets/mark_icon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "markicon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion OnlyWidget/Views/SmallWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ struct SmallWidget: View {
HStack {
Image(nsImage: image ?? NSImage(named: "logo")!)
.resizable()
.frame(width: Layout.iconSize, height: Layout.iconSize)
.aspectRatio(contentMode: .fit)
.frame(height: Layout.iconSize)
Spacer()
Text("Only Switch")
.font(.none)
Expand Down

0 comments on commit 2dc1dd0

Please sign in to comment.