<commit_before>package com.calintat.sensors.ui

import android.widget.Toolbar
import com.calintat.sensors.R
import com.calintat.sensors.activities.SettingsActivity
import com.github.calintat.Colorful
import org.jetbrains.anko.*
import org.jetbrains.anko.design.appBarLayout
import org.jetbrains.anko.design.coordinatorLayout

object SettingsUI : AnkoComponent<SettingsActivity> {

    internal lateinit var toolbar: Toolbar

    override fun createView(ui: AnkoContext<SettingsActivity>) = with(ui) {

        coordinatorLayout {

            fitsSystemWindows = true

            verticalLayout {

                appBarLayout {

                    toolbar = toolbar {

                        setTitleTextColor(Colorful.white)
                    }
                }

                frameLayout {

                    id = R.id.fragment
                }
            }
        }
    }
}<commit_msg>Updated Settings UI<commit_after>package com.calintat.sensors.ui

import android.support.v7.widget.Toolbar
import com.calintat.sensors.R
import com.calintat.sensors.activities.SettingsActivity
import com.calintat.sensors.utils.AnkoUtils.titleTextColorResource
import org.jetbrains.anko.*
import org.jetbrains.anko.appcompat.v7.navigationIconResource
import org.jetbrains.anko.appcompat.v7.titleResource
import org.jetbrains.anko.appcompat.v7.toolbar
import org.jetbrains.anko.design.appBarLayout
import org.jetbrains.anko.design.coordinatorLayout

class SettingsUI : AnkoComponent<SettingsActivity> {

    override fun createView(ui: AnkoContext<SettingsActivity>) = with(ui) {

        coordinatorLayout {

            fitsSystemWindows = true

            verticalLayout {

                appBarLayout {

                     toolbar {

                        navigationIconResource = R.drawable.ic_action_back

                        setNavigationOnClickListener { owner.finish() }

                        titleResource = R.string.navigation_settings

                        titleTextColorResource = R.color.white
                    }
                }

                frameLayout { id = R.id.container }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.07262569832402235, 'fraction_numerical': 0.00186219739292365, 'mean_word_length': 2.0920863309352518, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4552203', 'n_tokens_mistral': 604, 'n_tokens_neox': 544, 'n_words': 89}