diff --git a/CMakeLists.txt b/CMakeLists.txt index dc1b9d2..4dd29da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.0.0) project(youtube-web C CXX) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror") + find_package(Qt5Core) find_package(Qt5Qml) diff --git a/app/Main.qml b/app/Main.qml index 574f73b..3b76602 100644 --- a/app/Main.qml +++ b/app/Main.qml @@ -69,10 +69,16 @@ Rectangle { property string seekBarOverlayScript: " if (!document.getElementById('custom-seekbar')) { + var styleSheet = document.createElement('style'); + var styles = 'body[faux-fullscreen=true] #custom-seekbar { bottom:50px !important; } #custom-seekbar { bottom: 0; left: 30px;right: 30px; width: auto;z-index: 3;position: absolute;height: 20px; overflow: hidden;margin-bottom: 12px;}'; + styleSheet.innerText = styles + document.body.appendChild(styleSheet) + var wrapper= document.createElement('div'); - wrapper.innerHTML= '