Example #1
0
 public UserInterfaceSettings()
 {
     LyricsFormat  = new SongElementFormat("monospace", 16, System.Drawing.FontStyle.Regular, System.Drawing.Color.Black);
     NoteFormat    = new SongElementFormat("monospace", 16, System.Drawing.FontStyle.Regular, System.Drawing.Color.Black);
     LabelFormat   = new SongElementFormat("serif", 9, System.Drawing.FontStyle.Regular, System.Drawing.Color.Black);
     TextboxFormat = new SongElementFormat("serif", 9, System.Drawing.FontStyle.Regular, System.Drawing.Color.Black);
 }
        public SongElementFormat Clone()
        {
            var SongElementFormat = new SongElementFormat()
            {
                FontName  = this.FontName,
                FontSize  = this.FontSize,
                FontColor = this.FontColor,
                FontStyle = this.FontStyle
            };

            return(SongElementFormat);
        }
Example #3
0
        private void createDefault(DisplayAndPrintSettingsType settingsType)
        {
            this.settingsType = settingsType;
            float titleSize;
            Color TitleColor;
            bool  BoldTitle;
            float contentSize;
            Color ChordColor;
            Color LyricsColor;
            bool  BoldChords;
            bool  BoldLyrics;
            Color HeadingsColor;
            bool  BoldHeadings;
            Color OrderColor1;
            Color OrderColor2;
            float notesSize;
            float orderSize;
            Color NoteColor;
            bool  BoldNotes;
            bool  BoldOrder1;
            bool  BoldOrder2;

            if (settingsType == DisplayAndPrintSettingsType.DisplaySettings)
            {
                SettingsFilePath = Settings.GlobalApplicationSettings.DisplaySettingsFileName;
                var pageHeight = System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Height;

                titleSize   = adjustForLowerResolutions1(25, pageHeight);
                contentSize = adjustForLowerResolutions1(15, pageHeight);
                notesSize   = adjustForLowerResolutions1(14, pageHeight);
                orderSize   = adjustForLowerResolutions1(13, pageHeight);

                ShowNotes  = true;
                ShowChords = true;
                ShowLyrics = true;

                LyricsColor                        = ColorTranslator.FromHtml("White");
                BackgroundColor                    = Color.Black;
                ChordColor                         = ColorTranslator.FromHtml("#00FF80");
                HeadingsColor                      = ColorTranslator.FromHtml("#BE7C7C");
                TitleColor                         = ColorTranslator.FromHtml("#FEAF81");
                OrderColor1                        = ColorTranslator.FromHtml("#FF8040");
                OrderColor2                        = ColorTranslator.FromHtml("#FFFF80");
                NoteColor                          = ColorTranslator.FromHtml("#80FF80");
                VerseHeadingBackgroundColor        = ColorTranslator.FromHtml("#490707");
                PartialVerseHeadingBackgroundColor = ColorTranslator.FromHtml("#125003");
                VerseLyricsBackground1Color        = ColorTranslator.FromHtml("#000000");
                VerseLyricsBackground2Color        = ColorTranslator.FromHtml("#2E2424");
                VerseBorderColor                   = ColorTranslator.FromHtml("#4C4848");

                BoldChords   = true;
                BoldLyrics   = true;
                BoldNotes    = false;
                BoldHeadings = true;
                BoldTitle    = true;
                BoldOrder1   = true;
                BoldOrder2   = true;
            }
            else if (settingsType == DisplayAndPrintSettingsType.TabletSettings)
            {
                SettingsFilePath = Settings.GlobalApplicationSettings.TabletSettingsFilename;
                var pageHeight = 1024;

                titleSize   = adjustForLowerResolutions1(25, pageHeight);
                contentSize = adjustForLowerResolutions1(20, pageHeight);
                notesSize   = adjustForLowerResolutions1(18, pageHeight);
                orderSize   = adjustForLowerResolutions1(18, pageHeight);

                ShowNotes  = true;
                ShowChords = true;
                ShowLyrics = true;

                LyricsColor                        = ColorTranslator.FromHtml("White");
                BackgroundColor                    = Color.Black;
                ChordColor                         = ColorTranslator.FromHtml("#00FF80");
                HeadingsColor                      = ColorTranslator.FromHtml("#BE7C7C");
                TitleColor                         = ColorTranslator.FromHtml("#FEAF81");
                OrderColor1                        = ColorTranslator.FromHtml("#FF8040");
                OrderColor2                        = ColorTranslator.FromHtml("#FFFF80");
                NoteColor                          = ColorTranslator.FromHtml("#80FF80");
                VerseHeadingBackgroundColor        = ColorTranslator.FromHtml("#490707");
                PartialVerseHeadingBackgroundColor = ColorTranslator.FromHtml("#490707");
                VerseLyricsBackground1Color        = ColorTranslator.FromHtml("#000000");
                VerseLyricsBackground2Color        = ColorTranslator.FromHtml("#2E2424");
                VerseBorderColor                   = ColorTranslator.FromHtml("#4C4848");

                BoldChords   = true;
                BoldLyrics   = true;
                BoldNotes    = false;
                BoldHeadings = true;
                BoldTitle    = true;
                BoldOrder1   = true;
                BoldOrder2   = true;
            }
            else //if (settingsType == DisplayAndPrintSettingsType.PrintSettings)
            {
                SettingsFilePath = Settings.GlobalApplicationSettings.PrintSettingsFilename;

                titleSize   = 12;
                contentSize = 15;

                notesSize = 13;
                orderSize = 12;

                ShowNotes  = true;
                ShowChords = true;
                ShowLyrics = true;

                LyricsColor                        = Color.Black;
                BackgroundColor                    = Color.White;
                ChordColor                         = Color.Black;
                NoteColor                          = Color.Black;
                HeadingsColor                      = Color.Black;
                TitleColor                         = Color.Black;
                OrderColor1                        = Color.Black;
                OrderColor2                        = Color.Gray;
                VerseHeadingBackgroundColor        = ColorTranslator.FromHtml("White");
                PartialVerseHeadingBackgroundColor = ColorTranslator.FromHtml("White");
                VerseLyricsBackground1Color        = ColorTranslator.FromHtml("White");
                VerseLyricsBackground2Color        = ColorTranslator.FromHtml("White");
                VerseBorderColor                   = ColorTranslator.FromHtml("Black");

                BoldChords   = true;
                BoldLyrics   = false;
                BoldNotes    = false;
                BoldHeadings = true;
                BoldTitle    = true;
                BoldOrder1   = true;
                BoldOrder2   = true;
            }

            TitleFormat    = new SongElementFormat("Arial", titleSize, TitleColor, BoldTitle);
            HeadingsFormat = new SongElementFormat("Arial", contentSize, HeadingsColor, BoldHeadings);
            ChordFormat    = new SongElementFormat("Courier New", contentSize, ChordColor, BoldChords);
            LyricsFormat   = new SongElementFormat("Courier New", contentSize, LyricsColor, BoldLyrics);
            Order1Format   = new SongElementFormat("Courier New", orderSize, OrderColor1, BoldOrder1);
            Order2Format   = new SongElementFormat("Courier New", orderSize, OrderColor2, BoldOrder2);
            NoteFormat     = new SongElementFormat("Courier New", notesSize, NoteColor, BoldNotes);
        }