Skip to content

Commit

Permalink
3.9.2
Browse files Browse the repository at this point in the history
Fixed for light mode
  • Loading branch information
ty-wilson committed Mar 2, 2022
1 parent d8083f3 commit f9f2113
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Assets.xcassets/UIWhite.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.921",
"green" : "0.921",
"red" : "0.921"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
1 change: 1 addition & 0 deletions ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extension Color {
static let uiPurple = Color(NSColor(named: "UIPurple")!)
static let uiYellow = Color(NSColor(named: "UIYellow")!)
static let uiOrange = Color(NSColor(named: "UIOrange")!)
static let uiWhite = Color(NSColor(named: "UIWhite")!)
}

struct ContentView: View {
Expand Down
Binary file modified Log Parser.app.zip
Binary file not shown.
4 changes: 3 additions & 1 deletion Models/LineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ struct LineView: View {
Text(log.process).foregroundColor(Color.uiGreen)
if(filter.ignoreCase) {
StyledText(verbatim: log.text)
.style(.highlight(), ranges: { $0.lowercased().ranges(of: filter.searchText.lowercased()) })
.style(.highlight(), ranges: { $0.lowercased().ranges(of: filter.searchText.lowercased()) })
.foregroundColor(Color.uiWhite)
} else {
StyledText(verbatim: log.text)
.style(.highlight(), ranges: { $0.ranges(of: filter.searchText) })
.foregroundColor(Color.uiWhite)
}
}.onHover(perform: {val in
if(val){
Expand Down

0 comments on commit f9f2113

Please sign in to comment.