Commit f8d66182 authored by Samikshan Bairagya's avatar Samikshan Bairagya

Made the QML UI for WI translucent.

parent 77353288
......@@ -5,9 +5,17 @@ Rectangle {
objectName: "containerObj"
width: 370
height: 575
color: "#000009"
color: "transparent"
// color: "#000009"
anchors.fill: parent
Rectangle {
id: translucentBackground
color: "#020518"
anchors.fill: parent
opacity: 0.890
}
Text {
id: title
x: 9
......@@ -61,6 +69,7 @@ Rectangle {
color: "#00060b"
radius: 12
opacity: 0.500
border.width: 4
border.color: "black"
}
......@@ -348,6 +357,13 @@ Rectangle {
color: "transparent"
width: parent.width
Rectangle {
id: soListViewBackground
anchors.fill: soListViewContainer
color: "#00060b"
opacity: 0.5
}
Rectangle {
id: soListViewContainer
......@@ -355,7 +371,7 @@ Rectangle {
y: 31
width: parent.width - 30
height: 351
color: "#00060b"
color: "transparent"
radius: 12
border.width: 4
border.color: "#000000"
......@@ -404,13 +420,20 @@ Rectangle {
border.width: 4
border.color: "#000000"
Rectangle {
id: detailsViewBackground
anchors.fill: detailsView
color: "#00060b"
opacity: 0.5
}
Rectangle {
id: detailsView
objectName: "detailsViewObj"
x: parent.x + 15
height: parent.height - 20
width: parent.width - 30
color: "#00060b"
color: "transparent"
radius: 12
border.width: 4
border.color: "#000000"
......
......@@ -28,6 +28,9 @@ WIView::WIView ( QObject *parent, ObsConditions *obs) : QObject(parent)
QDeclarativeView *baseView = new QDeclarativeView();
baseView->setAttribute(Qt::WA_TranslucentBackground);
baseView->setStyleSheet("background: transparent;");
ctxt = baseView->rootContext();
baseView->setSource(KStandardDirs::locate("appdata","tools/whatsinteresting/qml/wiview.qml"));
......
......@@ -17,7 +17,6 @@
#include "QtDeclarative/QDeclarativeView"
#include "QtDeclarative/QDeclarativeContext"
#include "QtDeclarative/QDeclarativeItem"
#include "QModelIndex"
#include "skyobject.h"
#include "modelmanager.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment