Skip to content

Commit

Permalink
Adjust the url input color of projector screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ustc-zzzz committed Apr 9, 2023
1 parent 4b4cdb3 commit 42aba45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/teacon/slides/screen/ProjectorScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ public ProjectorScreen(ProjectorContainerMenu menu, Inventory inventory, Compone
mImageUrlStatus = StringUtils.isNotBlank(text) ? ImageUrlStatus.INVALID : ImageUrlStatus.NO_CONTENT;
}
input.setTextColor(switch (mImageUrlStatus) {
case NORMAL -> 0xE0E0E0;
case NORMAL, NO_CONTENT -> 0xE0E0E0;
case BLOCKED -> 0xE0E04B;
case INVALID -> 0xE04B4B;
case NO_CONTENT -> 0x4B4B4B;
});
});
input.setValue(value);
Expand Down

0 comments on commit 42aba45

Please sign in to comment.