mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Punt font size till after 1.0.
This commit is contained in:
@@ -135,14 +135,17 @@ private extension AppDefaults {
|
||||
|
||||
func fontSize(for key: String) -> FontSize {
|
||||
|
||||
var rawFontSize = int(for: key)
|
||||
if rawFontSize < smallestFontSizeRawValue {
|
||||
rawFontSize = smallestFontSizeRawValue
|
||||
}
|
||||
if rawFontSize > largestFontSizeRawValue {
|
||||
rawFontSize = largestFontSizeRawValue
|
||||
}
|
||||
return FontSize(rawValue: rawFontSize)!
|
||||
// Punted till after 1.0.
|
||||
return .medium
|
||||
|
||||
// var rawFontSize = int(for: key)
|
||||
// if rawFontSize < smallestFontSizeRawValue {
|
||||
// rawFontSize = smallestFontSizeRawValue
|
||||
// }
|
||||
// if rawFontSize > largestFontSizeRawValue {
|
||||
// rawFontSize = largestFontSizeRawValue
|
||||
// }
|
||||
// return FontSize(rawValue: rawFontSize)!
|
||||
}
|
||||
|
||||
func setFontSize(for key: String, _ fontSize: FontSize) {
|
||||
|
||||
Reference in New Issue
Block a user