Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.RGB


    fResources = new LocalResourceManager(JFaceResources.getResources());
    fFirstTimeOpen = (Activator.getDefault().getDialogSettings().getSection(DIALOG_SETTINGS_KEY) == null);
    fPreferences = Owl.getPreferenceService().getGlobalScope();

    /* Colors */
    fSeparatorBorderFg = OwlUI.getColor(fResources, new RGB(210, 210, 210));
    fSeparatorBg = OwlUI.getColor(fResources, new RGB(240, 240, 240));
  }
View Full Code Here


  }

  void updateResources() {

    /* Sticky Color */
    fStickyBgColor = OwlUI.getThemeColor(OwlUI.STICKY_BG_COLOR_ID, fResources, new RGB(255, 255, 180));

    /* News Background Color */
    createNewsListBackgroundResources();
  }
View Full Code Here

  }

  private void createResources() {

    /* Colors */
    fStickyBgColor = OwlUI.getThemeColor(OwlUI.STICKY_BG_COLOR_ID, fResources, new RGB(255, 255, 180));
    fGradientFgColor = OwlUI.getColor(fResources, OwlUI.GROUP_GRADIENT_FG_COLOR);
    fGradientBgColor = OwlUI.getColor(fResources, OwlUI.GROUP_GRADIENT_BG_COLOR);
    fGradientEndColor = OwlUI.getColor(fResources, OwlUI.GROUP_GRADIENT_END_COLOR);
    fGroupFgColor = OwlUI.getColor(fResources, OwlUI.GROUP_FG_COLOR);
    fGroupBgColor = OwlUI.getColor(fResources, OwlUI.GROUP_BG_COLOR);
View Full Code Here

  private void createNewsListBackgroundResources() {
    fNewsBgGradientStartColor = null;
    fNewsBgGradientEndColor = null;

    RGB listBackgroundRGB = Display.getDefault().getSystemColor(SWT.COLOR_LIST_BACKGROUND).getRGB();
    RGB newsBgColorRGB = OwlUI.getThemeRGB(OwlUI.NEWS_LIST_BG_COLOR_ID, listBackgroundRGB);
    if (newsBgColorRGB != null && !listBackgroundRGB.equals(newsBgColorRGB) && !isInvalidColor(newsBgColorRGB)) {
      fNewsBgGradientEndColor = OwlUI.getColor(fResources, newsBgColorRGB);

      RGB newsBgColorRGBLighter = new RGB(0, 0, 0);
      newsBgColorRGBLighter.red = Math.min(newsBgColorRGB.red + 5, 255);
      newsBgColorRGBLighter.green = Math.min(newsBgColorRGB.green + 5, 255);
      newsBgColorRGBLighter.blue = Math.min(newsBgColorRGB.blue + 5, 255);
      fNewsBgGradientStartColor = OwlUI.getColor(fResources, newsBgColorRGBLighter);
    }
View Full Code Here

    /* Handle INews */
    else if (element instanceof INews) {
      Set<ILabel> labels = CoreUtils.getSortedLabels((INews) element);
      if (!labels.isEmpty()) {
        RGB labelRGB = OwlUI.getRGB(labels.iterator().next());
        if (!fListBackground.equals(labelRGB) && !fListSelectionBackground.equals(labelRGB))
          return OwlUI.getColor(fResources, labelRGB);
      }
    }

View Full Code Here

   }
  
   public SchedulerEditorFontDialog(String fontName_, int fontSize_, int fontType_) {
    super();
      this.fontData = new FontData(fontName_,fontSize_,SWT.NORMAL);
    this.foreGround = new RGB(0,0,0);
   }
View Full Code Here

      this.fontData = fontData_;
   }
  
   public SchedulerEditorFontDialog(FontData fontData_) {
    super();
    this.foreGround = new RGB(0,0,0);
      this.fontData = fontData_;
   }
View Full Code Here

      this.fontData = fontData_;
   }
  
   public SchedulerEditorFontDialog(String fontData_) {
    super();
    this.foreGround = new RGB(0,0,0);
      this.fontData = new FontData(fontData_);
   }
View Full Code Here

       String[] colours =  Pattern.compile(",").split(s);
       try {
          int r = Integer.parseInt(colours[0].trim());
         int g = Integer.parseInt(colours[1].trim());
          int b = Integer.parseInt(colours[2].trim());
         this.foreGround = new RGB(r,g,b);
       }catch (NumberFormatException e){
         System.out.println("Wrong colour in Profile");
           this.foreGround = new RGB(0,0,0);
       }
      
      
  }
View Full Code Here

  public void show(Display display) {
   
      final Display d = display;
      final Shell s1 = new Shell(d);
    final Shell s = new Shell(MainWindow.getSShell(), SWT.CLOSE | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
      final RGB aktForeGround = this.foreGround;

      s.setSize(302, 160);
      s.setText("Font Dialog");
      s.setLayout(new GridLayout(11, false));
View Full Code Here

TOP

Related Classes of org.eclipse.swt.graphics.RGB

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.