14 Commits

Author SHA1 Message Date
John Sundell
8bc46cbeb0
Add SwiftLint (#49)
This change adds SwiftLint to the project. For now, the rules are tweaked
to match the current state of the code base — but will over time be changed
back to their defaults in several cases.

Some smaller changes (mostly related to code style) were applied to the
project to remove all warnings.
2019-03-11 14:52:46 +01:00
John Sundell
183224503f
Theme: Nitpicky code style fix 2018-10-09 23:22:50 +02:00
John Sundell
59d45d39e3
Theme: Documentation fix for backgroundColor 2018-10-09 23:22:18 +02:00
John Sundell
cb3f05d3e2
Theme+Defaults: Nitpicky code style fixes 2018-10-09 23:21:35 +02:00
Maciej Gad
1c6998d5f5 add support for different background colors 2018-09-23 14:06:09 +02:00
John Sundell
aea685e8b4 Color: Exclude internal extension on Linux 2018-08-26 22:57:02 +02:00
John Sundell
a68e461eb4 Replace custom Color struct with typealiases
Now that the decision not to support colors on Linux
has been made, we can replace the custom `Color` struct
with simple typealiases for `NSColor` and `UIColor`.

The same can’t be done for font, since we want to enable
loading of a font from a path, for SPM packages.
2018-08-26 22:49:39 +02:00
John Sundell
0155f41ceb Fix Sundell’s Colors theme colors
Seem to have been mixed up when moved to the new Defaults extension.
2018-08-26 14:15:47 +02:00
John Sundell
530cdad12f Disable Theme+Defaults on Linux 2018-08-26 00:59:22 +02:00
John Sundell
df73f6d066 Disable Color + Theme on Linux
They don’t really make sense, since there’s no way
to use them on Linux, without linking to some form
of Linux rendering framework.
2018-08-26 00:58:23 +02:00
John Sundell
1e532a6c4c Theme: Streamline cross-platform implementation
Now that we’re making Splash support iOS as well as
Mac + Linux, we need to create some nice abstractions
to make sure that we can share as much code as possible
between all platforms.

- Define Font.Loaded and Color.Renderable as platform-
specific typealiases for system fonts and colors.
- Don’t compile in non-Linux compatible code when building
for Linux.
- Make Font and Color handle all conversion themselves, so
that AttributedStringOutputFormat can be kept more clean.
2018-08-26 00:54:44 +02:00
Mihael Cholakov
128f0929d4 Moved Sundell theme to Defaults 2018-08-25 23:24:10 +03:00
Mihael Cholakov
d6a327c831 Adds additional premade themes 2018-08-25 23:22:54 +03:00
John Sundell
8645db8de0 Initial commit 2018-08-24 18:42:07 +02:00