<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd.
** Contact: <NAME> <<EMAIL>>
**
****************************************************************************/

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

import QtQuick 2.1
import Sailfish.Silica 1.0
import ".."

Loader {
    id: tabPageMenuLoader
    property BrowserPage browserPage
    property Item flickable
    property bool shareEnabled

    signal addToLauncher

    asynchronous: true
    sourceComponent: PullDownMenu {
        opacity: 0.0
        flickable: tabPageMenuLoader.flickable

        Behavior on opacity { FadeAnimation {} }

        MenuItem {
            //% "Close all tabs"
            text: qsTrId("sailfish_browser-me-close_all")
            onClicked: browserPage.tabs.clear()
        }
        MenuItem {
            enabled: shareEnabled
            //: Share link from browser pulley menu
            //% "Share"
            text: qsTrId("sailfish_browser-me-share_link")
            onClicked: pageStack.push(Qt.resolvedUrl("../ShareLinkPage.qml"), {"link" : browserPage.url, "linkTitle": browserPage.title})
        }
        MenuItem {
            //% "New tab"
            text: qsTrId("sailfish_browser-me-new_tab")
            onClicked: pageStack.push(Qt.resolvedUrl("../TabPage.qml"), {"newTab": true, "browserPage": browserPage})
        }

        MenuItem {
            enabled: shareEnabled
            //: Add bookmark to launcher menu item. This should be relatively short to fit to the menu.
            //% "Add to launcher"
            text: qsTrId("sailfish_browser-me-add_to_launcher")
            onClicked: tabPageMenuLoader.addToLauncher()
        }

        Component.onCompleted: opacity = 1.0
    }
}
<commit_msg>[sailfish-browser] Make "Add to launcher" less prominent in pulley menu<commit_after>/****************************************************************************
**
** Copyright (C) 2014 Jolla Ltd.
** Contact: <NAME> <<EMAIL>>
**
****************************************************************************/

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

import QtQuick 2.1
import Sailfish.Silica 1.0
import ".."

Loader {
    id: tabPageMenuLoader
    property BrowserPage browserPage
    property Item flickable
    property bool shareEnabled

    signal addToLauncher

    asynchronous: true
    sourceComponent: PullDownMenu {
        opacity: 0.0
        flickable: tabPageMenuLoader.flickable

        Behavior on opacity { FadeAnimation {} }

        MenuItem {
            //% "Close all tabs"
            text: qsTrId("sailfish_browser-me-close_all")
            onClicked: browserPage.tabs.clear()
        }
        MenuItem {
            enabled: shareEnabled
            //: Add bookmark to launcher menu item. This should be relatively short to fit to the menu.
            //% "Add to launcher"
            text: qsTrId("sailfish_browser-me-add_to_launcher")
            onClicked: tabPageMenuLoader.addToLauncher()
        }
        MenuItem {
            enabled: shareEnabled
            //: Share link from browser pulley menu
            //% "Share"
            text: qsTrId("sailfish_browser-me-share_link")
            onClicked: pageStack.push(Qt.resolvedUrl("../ShareLinkPage.qml"), {"link" : browserPage.url, "linkTitle": browserPage.title})
        }
        MenuItem {
            //% "New tab"
            text: qsTrId("sailfish_browser-me-new_tab")
            onClicked: pageStack.push(Qt.resolvedUrl("../TabPage.qml"), {"newTab": true, "browserPage": browserPage})
        }

        Component.onCompleted: opacity = 1.0
    }
}

{'fraction_non_alphanumeric': 0.17398945518453426, 'fraction_numerical': 0.008034145116746171, 'mean_word_length': 2.4643478260869567, 'pattern_counts': {'":': 6, '<': 9, '<?xml version=': 0, '>': 9, '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': '7232273', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1074, 'n_words': 293}