~do-win/do/test-paths

« back to all changes in this revision

Viewing changes to Do.Interface.Windows.AnimationBase/src/Do.Interface/Do.Interface.AnimationBase/BezelDefaults.cs

  • Committer: Hardeep S
  • Date: 2009-06-23 04:22:47 UTC
  • Revision ID: ootz0rz@gmail.com-20090623042247-ciyax78ykbtlx4ee
added Do.Interface.Windows.AnimationBase and Do.Interface.Windows.Classic

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// BezelDefaults.cs
 
2
// 
 
3
// Copyright (C) 2008 GNOME Do
 
4
//
 
5
// This program is free software: you can redistribute it and/or modify
 
6
// it under the terms of the GNU General Public License as published by
 
7
// the Free Software Foundation, either version 3 of the License, or
 
8
// (at your option) any later version.
 
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
using System;
 
20
 
 
21
namespace Do.Interface.AnimationBase
 
22
{
 
23
        public interface IBezelDefaults
 
24
        {
 
25
                int WindowBorder { get; }
 
26
                int WindowRadius { get; }
 
27
                string HighlightFormat { get; }
 
28
                bool RenderDescriptionText { get; }
 
29
        }
 
30
        
 
31
        public class HUDBezelDefaults : IBezelDefaults
 
32
        {
 
33
                
 
34
                public int WindowBorder {
 
35
                        get {
 
36
                                return 21;
 
37
                        }
 
38
                }
 
39
 
 
40
                public int WindowRadius {
 
41
                        get {
 
42
                                return 6;
 
43
                        }
 
44
                }
 
45
 
 
46
                public string HighlightFormat {
 
47
                        get {
 
48
                                return "<span foreground=\"#5599ff\">{0}</span>";
 
49
                        }
 
50
                }
 
51
                
 
52
                public bool RenderDescriptionText {
 
53
                        get {
 
54
                                return true;
 
55
                        }
 
56
                }
 
57
        }
 
58
        
 
59
        public class ClassicBezelDefaults : IBezelDefaults
 
60
        {
 
61
                
 
62
                public int WindowBorder {
 
63
                        get {
 
64
                                return 17;
 
65
                        }
 
66
                }
 
67
 
 
68
                public int WindowRadius {
 
69
                        get {
 
70
                                return 20;
 
71
                        }
 
72
                }
 
73
 
 
74
                public string HighlightFormat {
 
75
                        get {
 
76
                                return "<span underline=\"single\">{0}</span>";
 
77
                        }
 
78
                }
 
79
                
 
80
                public bool RenderDescriptionText {
 
81
                        get {
 
82
                                return true;
 
83
                        }
 
84
                }
 
85
        }
 
86
}