From a71a0936d40e282c262a956f4b08142fb902f085 Mon Sep 17 00:00:00 2001 From: henrikth93 Date: Sat, 23 Mar 2024 23:56:36 +0100 Subject: [PATCH] Remove shadows Remove shadows from certain UI elements. --- Scribe/AboutTab/InformationScreenVC.swift | 2 +- Scribe/InstallationTab/InstallationVC.swift | 2 +- Scribe/SettingsTab/SettingsViewController.swift | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scribe/AboutTab/InformationScreenVC.swift b/Scribe/AboutTab/InformationScreenVC.swift index 3a75523f..1dac2e19 100644 --- a/Scribe/AboutTab/InformationScreenVC.swift +++ b/Scribe/AboutTab/InformationScreenVC.swift @@ -68,7 +68,7 @@ class InformationScreenVC: UIViewController { contentContainerView.backgroundColor = UIColor(named: "commandBar") applyCornerRadius(elem: contentContainerView, radius: contentContainerView.frame.width * 0.05) - applyShadowEffects(elem: viewForApplyingShadow) + cornerImageView.clipsToBounds = true contentContainerView.clipsToBounds = true diff --git a/Scribe/InstallationTab/InstallationVC.swift b/Scribe/InstallationTab/InstallationVC.swift index b225f574..854d3319 100644 --- a/Scribe/InstallationTab/InstallationVC.swift +++ b/Scribe/InstallationTab/InstallationVC.swift @@ -164,7 +164,7 @@ class InstallationVC: UIViewController { // Enable installation directions and GitHub notice elements. settingsBtn.isUserInteractionEnabled = true appTextBackground.backgroundColor = UIColor(named: "commandBar") - applyShadowEffects(elem: appTextBackground) + // Set the texts for the fields. switch Locale.userSystemLanguage { diff --git a/Scribe/SettingsTab/SettingsViewController.swift b/Scribe/SettingsTab/SettingsViewController.swift index 8ed16a79..e9fc6f9c 100644 --- a/Scribe/SettingsTab/SettingsViewController.swift +++ b/Scribe/SettingsTab/SettingsViewController.swift @@ -47,7 +47,7 @@ final class SettingsViewController: UIViewController { parentTable.backgroundColor = .clear parentTable.sectionHeaderHeight = sectionHeaderHeight parentTable.separatorInset = separatorInset - applyShadowEffects(elem: parentTable) + setFooterButtonView() @@ -82,7 +82,7 @@ final class SettingsViewController: UIViewController { parentTable.tableFooterView?.isHidden = false } - applyShadowEffects(elem: footerFrame) + footerButton.setTitle("Install keyboard", for: .normal) footerButton.titleLabel?.font = .systemFont(ofSize: fontSize * 1.5, weight: .bold)