~mihirsoni/ubuntu-calendar-app/dateSelectNewEventTest

« back to all changes in this revision

Viewing changes to TimeLineHeaderComponent.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-09-19 11:03:09 UTC
  • mto: (455.5.4 3-Improve-DayView)
  • mto: This revision was merged to the branch mainline in revision 460.
  • Revision ID: krnekhelesh@gmail.com-20140919110309-jj28bqc9y8j155gx
Improved week views

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
 
import QtQuick 2.0
 
18
 
 
19
import QtQuick 2.3
19
20
import Ubuntu.Components 1.1
20
 
 
21
21
import "dateExt.js" as DateExt
22
22
import "ViewType.js" as ViewType
23
23
 
24
 
 
25
24
Row{
26
25
    id: header
27
26
 
47
46
                }
48
47
            }
49
48
 
50
 
            dateColor: {
 
49
            dayColor: {
51
50
                if( type == ViewType.ViewTypeWeek && date.isSameDay(DateExt.today())){
52
 
                    "#5D5D5D"
 
51
                    UbuntuColors.orange
53
52
                } else if( type == ViewType.ViewTypeDay && header.isCurrentItem ) {
54
 
                    "#5D5D5D"
 
53
                    UbuntuColors.orange
55
54
                } else {
56
 
                    "#AEA79F"
 
55
                    UbuntuColors.darkGrey
57
56
                }
58
57
            }
59
58