~josephjamesmills/u2t/dailybuilds

« back to all changes in this revision

Viewing changes to shell/3rdparty/mythweb/ButtonBackground.qml

  • Committer: Joseph Mills
  • Date: 2013-01-30 22:00:35 UTC
  • Revision ID: josephjamesmills@ubuntu.com-20130130220035-9bt17q998iql9smy
* adding tv guide youtube and netfilxs 
* fixed dash rendering issues 
* removed some doubled files 
* added more translations 
* added framework for previews for news and torrents
* added torrents and news lens to d/control 
* added string validatiors for dconf settings
* ITV.qml: changed "ubuntu tv extra's" to "ubuntu tv extras" 
modified:
  config.h.in
  debian/changelog
  debian/control
  libunity-2d-private/Unity2d/plugin.cpp
  session/2d-ubuntu.session
  shell/3rdparty/ITV/ITV.qml
  shell/3rdparty/qtv-qml/content/PreviewTextRight.qml
  shell/3rdparty/qtv-qml/content/ProgresBar.qml
  shell/3rdparty/qtv-qml/content/ProgresDialog.qml
  shell/3rdparty/qtv-qml/content/SearchBar.qml
  shell/3rdparty/qtv-qml/content/SearchBox.qml
  shell/3rdparty/qtv-qml/content/SearchEntryTVDB.qml
  shell/3rdparty/qtv-qml/content/SerieDelegate.qml
  shell/3rdparty/qtv-qml/content/SerieModel.qml
  shell/3rdparty/qtv-qml/content/SeriesDelegate.qml
  shell/3rdparty/qtv-qml/content/StatusBar.qml
  shell/3rdparty/qtv-qml/content/TextButton.qml
  shell/3rdparty/qtv-qml/main.qml
  shell/common/Background.qml
  shell/common/IconTile.qml
  shell/common/SearchEntry.qml
  shell/common/utils.js
  shell/dash/ButtonBackground.qml
  shell/dash/Dash.qml
  shell/dash/LensBar.qml
  shell/dash/LensButton.qml
  shell/dash/ListViewWithScrollbar.qml
  shell/dash/previews/MythTvPreview.qml
  shell/dash/previews/Previews.qml
  shell/dash/previews/VideoPreview.qml
  shell/dash/renderTypes/RendererCoverFlow.qml
  shell/dash/renderTypes/TileHorizontal.qml
  shell/dash/renderTypes/TileVertical.qml
  shell/launcher/LauncherItem.qml
  shell/launcher/SimpleLauncher.qml
  shell/systeminfo/SettingsMangerParser.qml

added:
  shell/3rdparty/mythweb/
  shell/3rdparty/mythweb/BrowserHeader.qml
  shell/3rdparty/mythweb/BrowserScrollbars.qml
  shell/3rdparty/mythweb/ButtonBackground.qml
  shell/3rdparty/mythweb/FlicableWebView.qml
  shell/3rdparty/mythweb/MythWeb.qml
  shell/3rdparty/shaders/
  shell/3rdparty/shaders/billboard.fsh
  shell/3rdparty/shaders/blackandwhite.fsh
  shell/3rdparty/shaders/emboss.fsh
  shell/3rdparty/shaders/gaussianblur_h.fsh
  shell/3rdparty/shaders/gaussianblur_v.fsh
  shell/3rdparty/shaders/glow.fsh
  shell/3rdparty/shaders/isolate.fsh
  shell/3rdparty/shaders/magnify.fsh
  shell/3rdparty/shaders/pagecurl.fsh
  shell/3rdparty/shaders/pixelate.fsh
  shell/3rdparty/shaders/posterize.fsh
  shell/3rdparty/shaders/ripple.fsh
  shell/3rdparty/shaders/selectionpanel.fsh
  shell/3rdparty/shaders/sepia.fsh
  shell/3rdparty/shaders/sharpen.fsh
  shell/3rdparty/shaders/shockwave.fsh
  shell/3rdparty/shaders/sobeledgedetection1.fsh
  shell/3rdparty/shaders/sobeledgedetection2.fsh
  shell/3rdparty/shaders/tiltshift.fsh
  shell/3rdparty/shaders/toon.fsh
  shell/3rdparty/shaders/vignette.fsh
  shell/3rdparty/shaders/warhol.fsh
  shell/3rdparty/shaders/wobble.fsh
  shell/dash/previews/NewsPreviews.qml
  shell/dash/previews/TorrentsPreview.qml
  shell/shell.qmlproject.user

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of unity-2d
 
3
 *
 
4
 * Copyright 2010-2011 Canonical Ltd.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
import QtQuick 1.0
 
20
 
 
21
Item {
 
22
    id: background
 
23
 
 
24
    property string state
 
25
 
 
26
    opacity: ( state == "selected" || state == "pressed"
 
27
              || state == "hovered" ) ? 1.0 : 0.0
 
28
    Behavior on opacity {NumberAnimation {duration: 100}}
 
29
 
 
30
    Rectangle {
 
31
 
 
32
        /* FIXME: */
 
33
        anchors.fill: parent
 
34
        anchors.bottomMargin: 1
 
35
        anchors.rightMargin: 1
 
36
 
 
37
        color: background.state == "pressed" ? "#ffffffff" : "#00000000"
 
38
        border.color: "#cccccc"
 
39
        border.width: 1
 
40
        radius: 3
 
41
 
 
42
        Image {
 
43
            fillMode: Image.Tile
 
44
            anchors.fill: parent
 
45
            source: "artwork/button_background.png"
 
46
            smooth: false
 
47
        }
 
48
    }
 
49
}