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

Creating project Home Assistant #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Creating project Home Assistant #12

wants to merge 1 commit into from

Conversation

Fidelesju
Copy link
Contributor

Remote control application from a home, just building the screens. It's a android version.

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);
Copy link
Member

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;
}
}
Copy link
Member

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;
Copy link
Member

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);
Copy link
Member

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{

Copy link
Member

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";
Copy link
Member

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) {
Copy link
Member

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 {
Copy link
Member

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 {
Copy link
Member

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() {
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants