<commit_before>Rect {
    id: Root
    width: parent.width
    height: parent.height
    FolderListModel {
        id: folders
        nameFilters: [ "*.qml" ]
    }

    Component {
        id: FolderDelegate
        Text {
            id: Wrapper
            width: Root.width
            text: fileName
            font.bold: true
            font.size: 14
            MouseRegion {
                anchors.fill: parent
                onClicked: {
                    if (folders.isFolder(index)) {
                        folders.folder = filePath;
                    } else {
                        qmlLauncher.launch(filePath);
                    }
                }
            }
        }
    }

    Text { id: DirText; text: folders.folder }

    ListView {
        anchors.top: DirText.bottom
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        model: folders
        delegate: FolderDelegate
    }
}<commit_msg>Browser UI improvements.<commit_after>Rect {
    id: Root
    width: parent.width
    height: parent.height
    FolderListModel {
        id: folders
        nameFilters: [ "*.qml" ]
//        folder: "E:"
    }

    Component {
        id: FolderDelegate
        Rect {
            id: Wrapper
            width: Root.width
            height: NameText.height
            Text {
                id: NameText
                text: fileName
                font.bold: true
                font.size: 12
            }
            MouseRegion {
                id: Mouse
                anchors.fill: parent
                onClicked: {
                    if (folders.isFolder(index)) {
                        folders.folder = filePath;
                    } else {
                        qmlLauncher.launch(filePath);
                    }
                }
            }
            states: [
                State {
                    name: "pressed"
                    when: Mouse.pressed
                    SetProperties { target: Wrapper; color: "#bbbbbb" }
                }
            ]
        }
    }

    Script {
        function up(path) {
            var pos = path.toString().lastIndexOf("/");
            return path.toString().substring(0, pos);
        }
    }

    Rect {
        id: UpButton
        width: 30
        height: UpText.height
        color: "grey"
        MouseRegion { anchors.fill: parent; onClicked: folders.folder = up(folders.folder) }
        Text { id: UpText; text: "Up" }
    }

    Text { anchors.left: UpButton.right; text: folders.folder }

    ListView {
        anchors.top: UpButton.bottom
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        model: folders
        delegate: FolderDelegate
        clip: true
    }
}
{'fraction_non_alphanumeric': 0.085724406659582, 'fraction_numerical': 0.002479631597591215, 'mean_word_length': 1.1074626865671642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5381473', 'n_tokens_mistral': 774, 'n_tokens_neox': 722, 'n_words': 161}