Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Updates to address post-launch issues #82

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
365 changes: 348 additions & 17 deletions src/main/java/net/reldo/taskstracker/TasksTrackerConfig.java

Large diffs are not rendered by default.

1,163 changes: 588 additions & 575 deletions src/main/java/net/reldo/taskstracker/TasksTrackerPlugin.java

Large diffs are not rendered by default.

51 changes: 39 additions & 12 deletions src/main/java/net/reldo/taskstracker/config/ConfigValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,57 @@ public class ConfigValues {

public enum CompletedFilterValues
{
COMPLETE_AND_INCOMPLETE,
COMPLETE,
INCOMPLETE;
COMPLETE_AND_INCOMPLETE("Both"),
COMPLETE("Complete"),
INCOMPLETE("Incomplete");

public final String name;

public String toString() { return name; }

CompletedFilterValues(String name)
{
this.name = name;
}
}

public enum TrackedFilterValues
{
TRACKED_AND_UNTRACKED,
TRACKED,
UNTRACKED;
TRACKED_AND_UNTRACKED("Both"),
TRACKED("Tracked"),
UNTRACKED("Untracked");

public final String name;

public String toString() { return name; }

TrackedFilterValues(String name)
{
this.name = name;
}
}

public enum IgnoredFilterValues
{
NOT_IGNORED,
IGNORED_AND_NOT_IGNORED,
IGNORED;
NOT_IGNORED("Not Ignored"),
IGNORED_AND_NOT_IGNORED("Both"),
IGNORED("Ignored");

public final String name;

public String toString() { return name; }

IgnoredFilterValues(String name)
{
this.name = name;
}
}

public enum TaskListTabs
{
TRACKED,
ALL,
CUSTOM;
TAB_ONE,
TAB_TWO,
TAB_THREE;
}

public enum SortDirections
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/reldo/taskstracker/panel/Icons.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public class Icons

private static final String ignoredBtnPath = "panel/components/ignored_button/";
public static final BufferedImage semivisibleimg = ImageUtil.loadImageResource(TasksTrackerPlugin.class, ignoredBtnPath + "semivisible_icon.png");
public static final Icon SEMIVISIBLE_ICON = new ImageIcon(ImageUtil.alphaOffset(semivisibleimg, -180));
public static final Icon INVISIBLE_ICON = new ImageIcon(ImageUtil.loadImageResource(TasksTrackerPlugin.class, ignoredBtnPath + "invisible_icon.png"));
public static final Icon VISIBLE_ICON = new ImageIcon(ImageUtil.loadImageResource(TasksTrackerPlugin.class, ignoredBtnPath + "visible_icon.png"));
public static final Icon UNIGNORED_ONLY_ICON = new ImageIcon(ImageUtil.alphaOffset(semivisibleimg, -180));
public static final Icon IGNORED_ONLY_ICON = new ImageIcon(ImageUtil.loadImageResource(TasksTrackerPlugin.class, ignoredBtnPath + "invisible_icon.png"));
public static final Icon IGNORED_UNIGNORED_ICON = new ImageIcon(ImageUtil.loadImageResource(TasksTrackerPlugin.class, ignoredBtnPath + "visible_icon.png"));

private static final String trackedBtnPath = "panel/components/tracked_button/";
public static final Icon UNTRACKED_ONLY_ICON = new ImageIcon(ImageUtil.loadImageResource(TasksTrackerPlugin.class, trackedBtnPath + "untracked_icon.png"));
Expand Down
Loading