From b59d613e50e72c4055132764f4c01d6c072c3688 Mon Sep 17 00:00:00 2001 From: namedkitten Date: Sun, 3 May 2020 18:06:06 +0100 Subject: [PATCH] Update italian translation, add scroll on volume slider for youtube/niconico. --- src/qml/UIComponents/VolumeSlider.qml | 16 ++++++++++++++++ src/qml/Utils/translations.js | 14 +++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/qml/UIComponents/VolumeSlider.qml b/src/qml/UIComponents/VolumeSlider.qml index d921358..b37651d 100644 --- a/src/qml/UIComponents/VolumeSlider.qml +++ b/src/qml/UIComponents/VolumeSlider.qml @@ -51,5 +51,21 @@ Slider { color: getAppearanceValueForTheme(appearance.themeName, "volumeSliderBackground") } + + + MouseArea { + acceptedButtons: Qt.NoButton + z: 10 + anchors.fill: parent + propagateComposedEvents: true + onWheel: { + if (wheel.angleDelta.y<0){ + volumeBar.value -= 5 + } + else { + volumeBar.value += 5 + } + } + } } } diff --git a/src/qml/Utils/translations.js b/src/qml/Utils/translations.js index 56e6c4b..67226c2 100644 --- a/src/qml/Utils/translations.js +++ b/src/qml/Utils/translations.js @@ -232,7 +232,19 @@ var translations = { TITLE: "Titolo", TOGGLE_ALWAYS_ON_TOP: "Mantieni in primo piano", DISABLE_TRACK: "Disabilita traccia", - AUDIO_DEVICES: "Dispositivi audio" + AUDIO_DEVICES: "Dispositivi audio", + PLAYLIST_MENU: "Menu Playlist", + THEME: "Tema", + SETTINGS: "Impostazioni", + LANGUAGE: "Lingua", + APPEARANCE: "Appearance", //gonna need more context for this + TITLE_ONLY_ON_FULLSCREEN: "Mostra il titolo solo in modalità a schermo intero", //kinda long but can't think of a shorter way + CLICK_TO_PAUSE: "Tap/Click per mettere in pausa", + DOUBLE_TAP_TO_SEEK: "Doppio Tap/Click per andare avanti", + DOUBLE_TAP_TO_SEEK_BY: "vai avanti di (secondi)", + FONT: "Font", + SUBTITLES_FONT_SIZE: "Dimensione Sottotitoli", + UI_FADE_TIME: "Fade Interfaccia (millisecondi)" }, russian: { OPEN_FILE: "Открыть...",