# CutBox.app

## Coverage Report

#### Created: 2024-03-12 03:40

    .../Source/App/Preferences/PreferencesThemeSelectionView.swift

    Line

    Count

    Source (jump to first uncovered line)

    1

    //

    2

    //  PreferencesThemeSelectionView.swift

    3

    //  CutBox

    4

    //

    5

    //  Created by Jason MilkiCutBoxBase on 13/5/18.

    6

    //  Copyright © 2018-2023 ocodo. All rights reserved.

    7

    //

    8

    9

    import Cocoa

    10

    import RxSwift

    11

    12

    class PreferencesThemeSelectionView: CutBoxBaseView {

    13

    14

        var prefs: CutBoxPreferencesService!

    15

    49

        let disposeBag = DisposeBag()

    16

    17

        @IBOutlet weak var themeSelectorTitleLabel: CutBoxBaseTextField!

    18

        @IBOutlet weak var themeSelectorMenu: CutBoxBasePopUpButton!

    19

        @IBOutlet weak var compactUICheckbox: CutBoxBaseButton!

    20

        @IBOutlet weak var hidePreviewCheckbox: CutBoxBaseButton!

    21

        @IBOutlet weak var reloadThemesButton: CutBoxBaseButton!

    22

    23

    49

        override func awakeFromNib() {

    24

    49

            prefs = CutBoxPreferencesService.shared

    25

    49

    26

    49

            self.setupThemeSelector()

    27

    49

            self.setupCompactUIControl()

    28

    49

            self.setupHidePreviewControl()

    29

    49

        }

    30

    31

    0

        @IBAction func themeSelectorMenuChanges(_ sender: CutBoxBasePopUpButton) {

    32

    0

            prefs.theme = sender.index(of: sender.selectedItem!)

    33

    0

        }

    34

    }