diff --git a/components/chkgfx/chkgfxAux.swift b/components/chkgfx/chkgfxAux.swift new file mode 100644 index 0000000..a19d6de --- /dev/null +++ b/components/chkgfx/chkgfxAux.swift @@ -0,0 +1,9 @@ +import AppKit + +func chkgfxOutlineText(_ text: String) -> AttributedString { + var att = AttributedString(text) + att.foregroundColor = .clear + att.strokeColor = .white + att.strokeWidth = 4 + return att +} diff --git a/components/chkgfx/mac/view/ChkgfxView.swift b/components/chkgfx/mac/view/ChkgfxView.swift index 76a1136..59a6d5c 100644 --- a/components/chkgfx/mac/view/ChkgfxView.swift +++ b/components/chkgfx/mac/view/ChkgfxView.swift @@ -9,7 +9,7 @@ struct ChkgfxView: View { var body: some View { VStack(spacing: 16) { - Text("Check graphics") + Text(chkgfxOutlineText("Check graphics")) .font(.largeTitle) } .padding(40) diff --git a/ogs-chkgfx/ver-mac/src/chkgfx/chkgfxAux.swift b/ogs-chkgfx/ver-mac/src/chkgfx/chkgfxAux.swift new file mode 120000 index 0000000..35d4532 --- /dev/null +++ b/ogs-chkgfx/ver-mac/src/chkgfx/chkgfxAux.swift @@ -0,0 +1 @@ +../../../../components/chkgfx/chkgfxAux.swift \ No newline at end of file