mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-57331: FUS: cleanup FeatureUsageStatistics menu, scale icon size (IDEA-227884)
GitOrigin-RevId: ac82370bb7aa1b33327f19c3f43271ffbb7a8a1d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
93285d672b
commit
1157903a22
@@ -9,13 +9,13 @@
|
||||
class="com.intellij.internal.statistic.actions.AddTestGroupToLocalWhitelistAction"/>
|
||||
<action internal="true" id="CleanupLocalWhitelistAction"
|
||||
class="com.intellij.internal.statistic.actions.CleanupLocalWhitelistAction"/>
|
||||
<action internal="true" id="OpenLocalWhitelistFileAction" class="com.intellij.internal.statistic.actions.OpenLocalWhitelistFileAction"/>
|
||||
<action internal="true" id="ConfigureWhitelistAction" class="com.intellij.internal.statistic.actions.ConfigureWhitelistAction"/>
|
||||
<action internal="true" id="OpenWhitelistFileAction" class="com.intellij.internal.statistic.actions.OpenWhitelistFileAction"/>
|
||||
<group internal="true" id="OpenEventLogFileAction" class="com.intellij.internal.statistic.groups.OpenEventLogFileActionGroup"/>
|
||||
<group internal="true" id="CleanupEventLog" class="com.intellij.internal.statistic.groups.CleanupEventLogByIdActionGroup"/>
|
||||
<add-to-group group-id="Internal" anchor="last"/>
|
||||
</group>
|
||||
<action internal="true" id="SendEventLogStatistics" class="com.intellij.internal.statistic.actions.SendEventLogAction"/>
|
||||
<action internal="true" id="OpenLocalWhitelistFileAction" class="com.intellij.internal.statistic.actions.OpenLocalWhitelistFileAction"/>
|
||||
<action internal="true" id="ConfigureWhitelistAction" class="com.intellij.internal.statistic.actions.ConfigureWhitelistAction"/>
|
||||
<action internal="true" id="OpenWhitelistFileAction" class="com.intellij.internal.statistic.actions.OpenWhitelistFileAction"/>
|
||||
<group internal="true" id="OpenEventLogFileAction" class="com.intellij.internal.statistic.groups.OpenEventLogFileActionGroup"/>
|
||||
<group internal="true" id="CleanupEventLog" class="com.intellij.internal.statistic.groups.CleanupEventLogByIdActionGroup"/>
|
||||
</actions>
|
||||
</idea-plugin>
|
||||
+4
-3
@@ -27,9 +27,10 @@ class OpenLocalWhitelistFileAction(private val myRecorderId: String = "FUS")
|
||||
override fun update(e: AnActionEvent) {
|
||||
val localWhitelistSize = WhitelistTestGroupStorage.getInstance(myRecorderId).size()
|
||||
val text = if (localWhitelistSize < 100) localWhitelistSize.toString() else "99+"
|
||||
val sizeCountIcon = TextIcon(text, JBColor.DARK_GRAY, UIUtil.getLabelBackground(), 2)
|
||||
sizeCountIcon.setFont(Font(UIUtil.getLabelFont().name, Font.BOLD, JBUIScale.scale(10)))
|
||||
ICON.setIcon(sizeCountIcon, 2, 20, 18)
|
||||
val sizeCountIcon = TextIcon(text, JBColor.DARK_GRAY, UIUtil.getLabelBackground(), 1)
|
||||
sizeCountIcon.setFont(Font(UIUtil.getLabelFont().name, Font.BOLD, JBUIScale.scale(9)))
|
||||
sizeCountIcon.setInsets(1, 1, 0, 0)
|
||||
ICON.setIcon(sizeCountIcon, 2, JBUIScale.scale(10), JBUIScale.scale(10))
|
||||
e.presentation.icon = ICON
|
||||
}
|
||||
|
||||
|
||||
@@ -156,6 +156,7 @@
|
||||
|
||||
<action internal="true" id="CollectFUStatisticsAction"
|
||||
class="com.intellij.internal.statistic.actions.CollectFUStatisticsAction">
|
||||
<add-to-group group-id="FeatureUsage.Internal" anchor="last"/>
|
||||
</action>
|
||||
|
||||
<!-- Help -->
|
||||
|
||||
Reference in New Issue
Block a user