Skip to content

Commit

Permalink
typos and background in StatsToolWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
dkandalov committed Sep 26, 2024
1 parent a8fcd1a commit 9757289
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/activitytracker/StatsToolWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,16 @@ object StatsToolWindow {

add(JPanel().apply {
layout = GridBagLayout()
val message = "Results are based on data from '${stats.dataFile}'.\n\n" +
"To see the time spent in editor/project or on tasks, enable Activity Tracker -> Settings -> Poll IDE State.\n\n" +
"The time spent in a project includes the time in IDE toolwindows and dialogs and, therefore, " +
"it will be greater than the time spent in IDE editor."
val message = "The stats are based on data from '${stats.dataFile}'.\n\n" +
"To see the time spent in the editor/project or on tasks, enable Activity Tracker -> Settings -> Poll IDE State.\n\n" +
"The time spent on a project includes the time in IDE tool windows and dialogs and, therefore, " +
"it will be greater than the time spent in the IDE editor."
val panelBackground = background
add(JTextArea(message).apply {
isEditable = false
lineWrap = true
wrapStyleWord = true
background = this.background
background = panelBackground
font = StartupUiUtil.labelFont
UIUtil.applyStyle(UIUtil.ComponentStyle.REGULAR, this)
}, GridBag().setDefaultWeightX(1.0).setDefaultWeightY(1.0).nextLine().next().fillCellHorizontally().anchor(NORTH))
Expand Down

0 comments on commit 9757289

Please sign in to comment.