-
Notifications
You must be signed in to change notification settings - Fork 8
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
Creating project Home Assistant #12
base: main
Are you sure you want to change the base?
Conversation
super.initUI(); | ||
this.radius = Math.min(width, height) / 3; | ||
add(new Handle(startAngle), 0, 0, width, height); | ||
add(new Handle(startAngle), 0, 0, width, height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate code
theta = (theta + 360) % 360; | ||
return (int) theta; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an empty line at the end of the files
|
||
public Container energyContainer; | ||
public Button btnDashboard; | ||
//public ImageControl eletrica, home; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented lines
sldNFossil.setFont(Font.getFont(false, Font.NORMAL_SIZE)); | ||
sldNFossil.appId = 1; | ||
sldNFossil.setLiveScrolling(false); | ||
sldNFossil.setBackColor(0x00C301); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create constants for these colors
import totalcross.ui.ScrollContainer; | ||
|
||
public class EnergyMenu extends ScrollContainer{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty?
|
||
public class DAO { | ||
|
||
/* String Kitchen = "kitchen"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty ?
|
||
|
||
|
||
/* public Boolean insertUsers(User user) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
@@ -0,0 +1,16 @@ | |||
package com.totalcross.util; | |||
|
|||
public class Colors { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it an interface
@@ -0,0 +1,6 @@ | |||
package com.totalcross.util; | |||
|
|||
public class Fonts { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it an interface
public static Image imgCameraDireita; | ||
public static Image imgCameraEsquerda; | ||
|
||
public static void loadFrozen() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these load methods are all the same
Remote control application from a home, just building the screens. It's a android version.