Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
876ac1c3
Commit
876ac1c3
authored
Mar 21, 2014
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compositor files now show up in Qt Creator and added a custom window wrapper.
parent
a00e4d5b
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
5 deletions
+72
-5
lipstick-glacier-home-qt5.spec
rpm/lipstick-glacier-home-qt5.spec
+0
-1
lipstick-glacier-home-qt5.yaml
rpm/lipstick-glacier-home-qt5.yaml
+0
-1
compositor.qml
src/qml/compositor.qml
+7
-0
WindowWrapperAlpha.qml
src/qml/compositor/WindowWrapperAlpha.qml
+1
-1
WindowWrapperBase.qml
src/qml/compositor/WindowWrapperBase.qml
+0
-1
WindowWrapperMystic.qml
src/qml/compositor/WindowWrapperMystic.qml
+58
-0
resources-qml.qrc
src/resources-qml.qrc
+1
-0
src.pro
src/src.pro
+5
-1
No files found.
rpm/lipstick-glacier-home-qt5.spec
View file @
876ac1c3
...
...
@@ -24,7 +24,6 @@ Requires: nemo-qml-plugin-time-qt5
Requires: qt5-qtdeclarative-import-window2
Requires: qt5-qtquickcontrols-nemo
Requires: nemo-qml-plugin-contextkit-qt5
Requires: statefs-provider-bme
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(lipstick-qt5) >= 0.12.0
...
...
rpm/lipstick-glacier-home-qt5.yaml
View file @
876ac1c3
...
...
@@ -17,7 +17,6 @@ Requires:
-
qt5-qtdeclarative-import-window2
# TODO: components dep?
-
qt5-qtquickcontrols-nemo
-
nemo-qml-plugin-contextkit-qt5
-
statefs-provider-bme
PkgConfigBR
:
-
Qt5Core
-
Qt5Quick
...
...
src/qml/compositor.qml
View file @
876ac1c3
...
...
@@ -213,6 +213,11 @@ Compositor {
WindowWrapperAlpha
{
}
}
Component
{
id
:
mysticWrapper
WindowWrapperMystic
{
}
}
onWindowAdded
:
{
if
(
debug
)
console
.
log
(
"
Compositor: Window added
\"
"
+
window
.
title
+
"
\"
"
)
...
...
@@ -242,6 +247,8 @@ Compositor {
setCurrentWindow
(
homeWindow
)
}
else
if
(
isNotificationWindow
||
isOverlayWindow
)
{
}
else
{
w
=
mysticWrapper
.
createObject
(
parent
,
{
window
:
window
})
window
.
userData
=
w
setCurrentWindow
(
w
)
}
}
...
...
src/qml/compositor/WindowWrapperAlpha.qml
View file @
876ac1c3
// Copyright (C) 2013 Jolla Ltd
.
// Copyright (C) 2013 Jolla Ltd
, Robin Burchell: <robin.burchell@jolla.com>
//
// This file is part of colorful-home, a nice user experience for touchscreens.
//
...
...
src/qml/compositor/WindowWrapperBase.qml
View file @
876ac1c3
...
...
@@ -28,7 +28,6 @@ Item {
property
Item
window
width
:
window
.
width
height
:
window
.
height
NumberAnimation
on
opacity
{
id
:
fadeInAnimation
;
running
:
false
;
from
:
0
;
to
:
1
}
function
animateIn
()
{
fadeInAnimation
.
start
();
}
...
...
src/qml/compositor/WindowWrapperMystic.qml
0 → 100644
View file @
876ac1c3
// Copyright (C) 2013 Jolla Ltd, Robin Burchell: <robin.burchell@jolla.com>
// Copyright (C) 2014 Aleksi Suomalainen: <suomalainen.aleksi@gmail.com>
//
// This file is part of colorful-home, a nice user experience for touchscreens.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
import
QtQuick
2.1
import
QtQuick
.
Window
2.1
import
org
.
nemomobile
.
lipstick
0.1
WindowWrapperBase
{
id
:
wrapper
ShaderEffect
{
anchors.fill
:
parent
z
:
2
/*hasCover: coverWindowId.value != undefined ? true : false
WindowProperty {
id: coverWindowId
windowId: window.windowId
property: "SAILFISH_COVER_WINDOW"
}*/
// source Item must be a texture provider
property
Item
source
:
wrapper
.
window
fragmentShader
:
"
uniform sampler2D source;
uniform mediump float qt_Opacity;
varying highp vec2 qt_TexCoord0;
void main() {
gl_FragColor = qt_Opacity * vec4(texture2D(source, qt_TexCoord0).rgb, 1);
}
"
}
onWindowChanged
:
{
if
(
window
!=
null
)
{
// do not paint the QWaylandSurfaceItem, just use it as
// a texture provider
window
.
setPaintEnabled
(
false
)
}
}
}
src/resources-qml.qrc
View file @
876ac1c3
...
...
@@ -30,5 +30,6 @@
<file>qml/images/battery4.png</file>
<file>qml/images/battery5.png</file>
<file>qml/images/battery6.png</file>
<file>qml/compositor/WindowWrapperMystic.qml</file>
</qresource>
</RCC>
src/src.pro
View file @
876ac1c3
...
...
@@ -35,6 +35,10 @@ OTHER_FILES += qml/*.qml \
qml/AppLauncher.qml \
qml/ToolBarLayoutExample.qml \
qml/SwitcherItem.qml \
qml/CloseButton.qml
qml/CloseButton.qml \
qml/compositor/WindowWrapperMystic.qml \
qml/compositor/WindowWrapperBase.qml \
qml/compositor/WindowWrapperAlpha.qml \
qml/compositor/ScreenGestureArea.qml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment