Skip to content

Commit

Permalink
Cambio de nombre a la propiedad para convertir un boton en link
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel-ICM committed Oct 25, 2021
1 parent 6212e5e commit 2ae84f6
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/built-jar.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Mon, 25 Oct 2021 11:49:26 -0700
#Mon, 25 Oct 2021 12:52:30 -0700


C\:\\Users\\josue2\\Documents\\NetBeansProjects\\MyStyles=
Binary file added captures/version1.1.0/link.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added captures/version1.1.0/linkDark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added captures/version1.1.0/passwordField.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added captures/version1.1.0/passwordFieldDark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added captures/version1.1.0/switch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added captures/version1.1.0/switchDark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/icm/sphynx/ui/metro/manager/UIButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private void installProperties() {
button.setBorder(null);
}
// ButtonLink
else if (MetroUIComponent.getPropertyButtonLink(button.getName())) {
else if (MetroUIComponent.getPropertyButtonAsLink(button.getName())) {
button.setBackground(null);
button.setBorder(null);
}
Expand Down Expand Up @@ -201,7 +201,7 @@ protected void paintText(Graphics g, JComponent c, Rectangle textRect, String te
super.paintText(g, c, textRect, text);

// Propiedad link
if (MetroUIComponent.getPropertyButtonLink(button.getName()))
if (MetroUIComponent.getPropertyButtonAsLink(button.getName()))
installTextStyles(c);
else {
c.setForeground(Color.decode(COLOR_FOREGROUND));
Expand Down
4 changes: 2 additions & 2 deletions src/icm/sphynx/ui/metro/tools/MetroUIComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void setButtonEmpty(String nameComponent) {
* Asigna estilos al botón para que se vea como un link
* @param nameComponent Nombre del componente al que se aplicará la propiedad
*/
public static void setButtonLink(String nameComponent) {
public static void setButtonAsLink(String nameComponent) {
UIManager.put(BUTTON + "." + nameComponent + "." + BUTTON_LINK, true);
}
/**
Expand Down Expand Up @@ -135,7 +135,7 @@ public static boolean getPropertyButtonEmpty(String nameComponent) {
* @param nameComponent
* @return
*/
public static boolean getPropertyButtonLink(String nameComponent) {
public static boolean getPropertyButtonAsLink(String nameComponent) {
return UIManager.getBoolean(BUTTON + "." + nameComponent + "." + BUTTON_LINK);
}
/**
Expand Down

0 comments on commit 2ae84f6

Please sign in to comment.