protected internal virtual object[] getColorSchemeBlueDefaults(UIDefaults paramUIDefaults)
        {
            ColorUIResource colorUIResource1 = new ColorUIResource(applicationBackground);
            ColorUIResource colorUIResource2 = new ColorUIResource(applicationBackground);

            return(new object[] { "OfficeLnF.name", "Office2013", "OfficeLnF.ComboBox.Arrow.Armed.Gradient1", new ColorUIResource(255, 244, 204), "OfficeLnF.ComboBox.Arrow.Armed.Gradient2", new ColorUIResource(255, 212, 151), "OfficeLnF.ComboBox.Arrow.Selected.Gradient1", new ColorUIResource(254, 145, 78), "OfficeLnF.ComboBox.Arrow.Selected.Gradient2", new ColorUIResource(255, 203, 135), "OfficeLnF.ComboBox.Arrow.Normal.Gradient1", new ColorUIResource(195, 218, 249), "OfficeLnF.ComboBox.Arrow.Normal.Gradient2", null, "Office2003LnF.CBMenuItemCheckBGColor", new ColorUIResource(255, 192, 111), "Office2003LnF.CBMenuItemCheckBGSelectedColor", new ColorUIResource(254, 128, 62), "OfficeLnF.HighlightBorderColor", new ColorUIResource(applicationBorderColor), "OfficeLnF.HighlightColor", new ColorUIResource(selectionColor), "Office2003LnF.ToolBarGripLightColor", new ColorUIResource(255, 255, 255), "Office2003LnF.ToolBarGripDarkColor", new ColorUIResource(applicationBorderColor), "Office2003LnF.MenuItemBeginGradientColor", new ColorUIResource(227, 239, 255), "Office2003LnF.MenuItemEndGradientColor", new ColorUIResource(135, 173, 228), "Office2003LnF.PanelGradientColor1", new ColorUIResource(158, 190, 245), "Office2003LnF.PanelGradientColor2", new ColorUIResource(195, 218, 249), "Office2003LnF.ToolBarBeginGradientColor", new ColorUIResource(applicationBackground), "Office2003LnF.ToolBarEndGradientColor", new ColorUIResource(applicationBackground), "Office2003LnF.ToolBarBottomBorderColor", new ColorUIResource(applicationBackground), "Office2003LnF.ToolBarBackgroundColor", new ColorUIResource(applicationBackground), "Office2003LnF.ToolBarButtonArmedBeginGradientColor", new ColorUIResource(selectionColor), "Office2003LnF.ToolBarButtonArmedEndGradientColor", new ColorUIResource(selectionColor), "Office2003LnF.ToolBarButtonSelectedBeginGradientColor", new ColorUIResource(selectionDarkerColor), "Office2003LnF.ToolBarButtonSelectedEndGradientColor", new ColorUIResource(selectionDarkerColor), "Office2003LnF.MenuBarItemArmedBeginGradientColor", new ColorUIResource(selectionDarkerColor), "Office2003LnF.MenuBarItemArmedEndGradientColor", new ColorUIResource(selectionDarkerColor), "Office2003LnF.MenuBarItemSelectedBeginGradientColor", new ColorUIResource(selectionDarkerColor), "Office2003LnF.MenuBarItemSelectedEndGradientColor", new ColorUIResource(selectionDarkerColor), "OfficeLnF.MenuBorderColor", new ColorUIResource(0, 45, 150), "UILabelPanel.gradientBegin", new ColorUIResource(gradientBegin), "UILabelPanel.gradientEnd", new ColorUIResource(gradientEnd), "UILabelPanel.noGradientFill", new ColorUIResource(applicationBackground), "MenuItem.background", new ColorUIResource(applicationBackground), "checkBoxMenuItemBackground", colorUIResource2, "OptionPane.background", colorUIResource2, "menuBackground", colorUIResource2, "menuBarBackground", colorUIResource1, "menuItemBackground", colorUIResource2, "radioButtonMenuItemBackground", colorUIResource2, "toolBarShadow", new ColorUIResource(applicationBorderColor), "toolBarHighlight", new ColorUIResource(applicationBorderColor), "separatorForeground", new ColorUIResource(textForegroundColor), "separatorBackground", colorUIResource2, "Table.selectionBackground", new ColorUIResource(tableSelectBackground), "Table.selectionForeground", new ColorUIResource(tableSelectForeground), "Tree.selectionBackground", new ColorUIResource(tableSelectBackground), "Tree.selectionForeground", new ColorUIResource(tableSelectForeground), "List.selectionBackground", new ColorUIResource(tableSelectBackground), "List.selectionForeground", new ColorUIResource(tableSelectForeground), "ComboBox.selectionBackground", new ColorUIResource(tableSelectBackground), "ComboBox.selectionForeground", new ColorUIResource(tableSelectForeground), "RadioButton.background", new ColorUIResource(applicationBackground), "RadioButton.border", new ColorUIResource(applicationBackground), "RadioButton.darkShadow", new ColorUIResource(applicationBackground), "ToolBar.border", BorderFactory.createEmptyBorder(), "Separator.background", applicationBorderColor, "Separator.shadow", colorUIResource2, "Office2003LnF.CBMenuItemCheckBGColor", selectionColor, "SidePane.selectedButtonBackground", selectionDarkerColor, "JideButton.selectedBackground", selectionDarkerColor, "Gripper.foreground", ribbonBackground, "OptionPane.bannerLt", new ColorUIResource(applicationBackground), "OptionPane.bannerDk", new ColorUIResource(applicationBackground), "CollapsiblePane.background", new ColorUIResource(ribbonBackground), "CollapsiblePanes.backgroundLt", new ColorUIResource(ribbonBackground), "CollapsiblePanes.backgroundDk", new ColorUIResource(ribbonBackground), "CollapsiblePane.emphasizedBackground", applicationButtonSelectedColor, "CollapsiblePaneTitlePane.backgroundLt.emphasized", new ColorUIResource(applicationButtonSelectedColor), "CollapsiblePaneTitlePane.backgroundDk.emphasized", new ColorUIResource(applicationButtonSelectedColor), "CollapsiblePane.emphasizedForeground", Color.white, "CollapsiblePaneTitlePane.foreground.emphasized", new ColorUIResource(Color.white), "CollapsiblePaneTitlePane.foreground.focus.emphasized", new ColorUIResource(Color.white.brighter()), "TextField.inactiveBackground", applicationBackground, "CheckBox.background", applicationBackground, "ComboBox.buttonBackground", applicationBackground, "control", applicationBackground, "JideTabbedPane.tabAreaBackground", new ColorUIResource(selectionDarkerColor), "JideTabbedPane.selectedTabBackground", new ColorUIResource(selectionDarkerColor), "JideTabbedPane.selectedTabBackgroundDk", ColorUtils.getDerivedColor(selectionDarkerColor, 0.6F), "JideTabbedPane.selectedTabBackgroundDk", ColorUtils.getDerivedColor(selectionDarkerColor, 0.4F), "selection.border", selectionColor, "selection.RolloverLt", ColorUtils.getDerivedColor(selectionColor, 0.6F), "selection.RolloverDk", ColorUtils.getDerivedColor(selectionColor, 0.4F), "selection.SelectedLt", ColorUtils.getDerivedColor(selectionDarkerColor, 0.6F), "selection.SelectedDk", ColorUtils.getDerivedColor(selectionDarkerColor, 0.4F), "selection.PressedLt", ColorUtils.getDerivedColor(selectionDarkerColor, 0.4F), "selection.PressedDk", ColorUtils.getDerivedColor(selectionDarkerColor, 0.6F) });
        }
 protected internal virtual void initSystemColorDefaults2003(UIDefaults paramUIDefaults)
 {
     base.initSystemColorDefaults2003(paramUIDefaults);
     System.setProperty("OfficeLnFs.theme", "silver");
     paramUIDefaults.putDefaults(ComponentDefaults);
     paramUIDefaults.putDefaults(getColorSchemeBlueDefaults(paramUIDefaults));
 }
Example #3
0
        //Initialization of values
        public void init()
        {
            //Hide the navigation bar
            NavigationPage.SetHasNavigationBar(this, false);

            //Default UI values class
            UIDefaults uid = new UIDefaults();

            MainLayout.BackgroundColor = uid.backgroundColor;

            labelPageTitle.TextColor        = uid.textColor;
            labelPageTitle.FontSize         = uid.titleFontSize;
            labelCompany.TextColor          = uid.textColor;
            labelCompanyDetails.TextColor   = uid.textColor;
            activitySpinner.BackgroundColor = uid.backgroundColor;

            string[] messages = req.Messages.ToArray();
            if (messages.Length > 0)
            {
                labelMessage1.Text = messages[0];
                labelMessage2.Text = messages[1];
                labelMessage3.Text = messages[2];

                labelMessage1.FontSize      = labelMessage2.FontSize =
                    labelMessage3.FontSize  = uid.messageFontSize;
                labelMessage1.TextColor     = labelMessage2.TextColor =
                    labelMessage3.TextColor = uid.textColor;
            }
        }
 public virtual void loadDefaults(UIDefaults paramUIDefaults)
 {
     if (paramUIDefaults == null)
     {
         paramUIDefaults = UIManager.Defaults;
     }
     paramUIDefaults.putDefaults(ComponentDefaults);
     paramUIDefaults.putDefaults(getColorSchemeBlueDefaults(paramUIDefaults));
 }
        //initialization values
        public void init()
        {
            NavigationPage.SetHasNavigationBar(this, false); //Hide the navigation bar
            UIDefaults uid = new UIDefaults();

            MainLayout.BackgroundColor = uid.backgroundColor;

            labelPageTitle.TextColor      = uid.textColor;
            labelPageTitle.FontSize       = uid.titleFontSize;
            labelCompany.TextColor        = uid.textColor;
            labelCompanyDetails.TextColor = uid.textColor;
        }
 public static void listUIProperties(UIDefaults paramUIDefaults)
 {
     if (paramUIDefaults == null)
     {
         paramUIDefaults = UIManager.Defaults;
     }
     System.Collections.IEnumerator enumeration = paramUIDefaults.keys();
     while (enumeration.MoveNext())
     {
         object @object = enumeration.Current;
         if (@object.ToString().ToLower().IndexOf("collaps") != -1)
         {
             Console.Write("{0,50} : {1}\n", new object[] { @object, UIManager.get(@object) });
         }
     }
 }
Example #7
0
        public void init()
        {
            //Hiding Back navigation
            NavigationPage.SetHasBackButton(this, false);
            //Hide the navigation bar
            NavigationPage.SetHasNavigationBar(this, false);

            UIDefaults uid = new UIDefaults();

            MainLayout.BackgroundColor = uid.backgroundColor;

            displayMessage.Text = "Please contact our support team at \n(800) 909-3630" +
                                  " and provide the device id: \n\n";
            displayUUID.Text = uuid;

            labelPageTitle.TextColor      = uid.textColor;
            labelPageTitle.FontSize       = uid.titleFontSize;
            labelCompany.TextColor        = uid.textColor;
            labelCompanyDetails.TextColor = uid.textColor;
            displayMessage.FontSize       = uid.messageFontSize;
            displayMessage.TextColor      = uid.textColor;
            displayUUID.TextColor         = uid.textColor;
            displayUUID.FontSize          = uid.messageFontSize + 1;
        }
 protected internal virtual void initComponentDefaults2003(UIDefaults paramUIDefaults)
 {
     System.setProperty("OfficeLnFs.theme", "silver");
     base.initComponentDefaults2003(paramUIDefaults);
 }
 protected internal virtual void initClassDefaults(UIDefaults paramUIDefaults)
 {
     base.initClassDefaults(paramUIDefaults);
     object[] arrayOfObject = new object[] { "PanelUI", "org.officelaf.OfficePanelUI", "RootPaneUI", "Desktop.common.nomitech.common.laf.CostOSRootPaneUI", "CommandButtonUI", "Desktop.common.nomitech.common.laf.CostOSCommandButtonUI", "CostOSApplicationMenuCommandButtonPanelUI", "Desktop.common.nomitech.common.laf.CostOSApplicationMenuCommandButtonPanelUI", "CommandToggleButtonUI", "Desktop.common.nomitech.common.laf.CostOSCommandToggleButtonUI", "CommandMenuButtonUI", "Desktop.common.nomitech.common.laf.CostOSCommandMenuButtonUI", "CommandButtonPanelUI", "Desktop.common.nomitech.common.laf.CostOSCommandButtonPanelUI", "RibbonUI", "Desktop.common.nomitech.common.laf.CostOSRibbonUI", "RibbonBandUI", "Desktop.common.nomitech.common.laf.CostOSRibbonBandUI", "BandControlPanelUI", "org.officelaf.ribbon.OfficeBandControlPanelUI", "RibbonTaskToggleButtonUI", "Desktop.common.nomitech.common.laf.CostOSRibbonTaskToggleButtonUI", "RibbonApplicationMenuButtonUI", "Desktop.common.nomitech.common.laf.CostOSRibbonApplicationMenuButtonUI" };
     paramUIDefaults.putDefaults(arrayOfObject);
 }