This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
62 additions
and
31 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package ca.warp7.desktop.qrscanner | ||
|
||
import javafx.scene.control.TableCell | ||
import kb.core.fx.label | ||
|
||
class MatchCell : TableCell<V5Entry, String>() { | ||
override fun updateItem(item: String?, empty: Boolean) { | ||
super.updateItem(item, empty) | ||
if (item == null || empty) { | ||
graphic = null | ||
return | ||
} | ||
graphic = label { | ||
text = item | ||
style = when (item.last()) { | ||
'1', '3', '5', '7', '9' -> "-fx-font-weight: bold; -fx-text-fill: #080" | ||
else -> "-fx-font-weight: bold; -fx-text-fill: #808 " | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.