GithubHelp home page GithubHelp logo

dotxyteam / lookandfeelmetalizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 10.63 MB

Java library generating a great number of color combinations for theming Swing applications

License: MIT License

Java 99.64% Shell 0.36%

lookandfeelmetalizer's Introduction

LookAndFeelMetalizer

LookAndFeelMetalizer allows to quickly modify the theme of the Metal look-and-feel alt text

Features

  • lot of generated themes
  • consistent color schemes
  • theme selection dialog

Requirements

Tested on Java 1.8

Download

  • Use Maven

    <dependency>
          <groupId>com.github.dotxyteam</groupId>
          <artifactId>metalizer</artifactId>
          <version>3.4.0</version>
      </dependency>
  • Or Download The JAR

Usage

The jar file is runnable.

To test:

  • either double-click on the jar file (OS-dependant)
  • or run this command: java -jar

By default it will:

  • open the theme selection dialog
  • try to download and open a test application

A Metalizer theme is an an instance of the 'IEqualizedTheme' interface. It has the following implementation:

	IEqualizedTheme myTheme = new EqualizedMetalTheme();

It has 6 values that can be changed: latitude, longitude, hue, saturation, brightness and color inversion. Open the theme selection dialog to find out your preferred values. Example:

	myTheme.getEqualization().setLatitude(37);
	myTheme.getEqualization().setLongitude(42);
	myTheme.getEqualization().setHue(90);
	myTheme.getEqualization().setSaturation(223);
	myTheme.getEqualization().setBrightness(107);
	myTheme.getEqualization().setColorsInverted(true);

To enable the theme, include the following code in your application before creating any controls:

	myTheme.activate();

Use the following code to open the theme selection window:

	boolean themeAccepted = ThemeEqualizerDialog.open(null, myTheme);
	if (themeAccepted) {
		System.out.println("Selected theme: " + myTheme);
	} else {
		System.out.println("Theme rejected. The initial look-and-feel should be restored");
	}

Used by

Feedback

Feel free to post any found bugs or send me a message: [email protected]

Thanks!

lookandfeelmetalizer's People

Contributors

olitank avatar dotxyteam avatar

Watchers

 avatar

Forkers

ag-java

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.