Skip to content

Commit

Permalink
Bring back GPU and Network widget buttons (#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored Feb 1, 2024
1 parent 43da40d commit d2050b8
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 12 deletions.
40 changes: 34 additions & 6 deletions CoreWidgetProvider/Widgets/Templates/SystemGPUUsageTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,41 @@
"text": "${gpuName}",
"type": "TextBlock",
"size": "medium"
}
],
"actions": [
},
{
"type": "Action.Execute",
"title": "%GPUUsage_Widget_Template/Next_GPU%",
"verb": "NextItem"
"type": "ColumnSet",
"spacing": "Medium",
"columns": [
{
"type": "Column",
"width": "stretch"
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Container",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Execute",
"title": "%GPUUsage_Widget_Template/Next_GPU%",
"verb": "NextItem"
}
]
}
]
}
]
},
{
"type": "Column",
"width": "stretch"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,41 @@
"text": "${networkName}",
"type": "TextBlock",
"size": "medium"
}
],
"actions": [
},
{
"type": "Action.Execute",
"title": "%NetworkUsage_Widget_Template/Next_Network%",
"verb": "NextItem"
"type": "ColumnSet",
"spacing": "Medium",
"columns": [
{
"type": "Column",
"width": "stretch"
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Container",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Execute",
"title": "%NetworkUsage_Widget_Template/Next_Network%",
"verb": "NextItem"
}
]
}
]
}
]
},
{
"type": "Column",
"width": "stretch"
}
]
}
]
}
Expand Down
2 changes: 2 additions & 0 deletions src/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
<Activation>
<CreateInstance ClassId="426A52D6-8007-4894-A946-CF80F39507F1" />
</Activation>
<SupportedInterfaces>
</SupportedInterfaces>
</DevHomeProvider>
</uap3:Properties>
</uap3:AppExtension>
Expand Down

0 comments on commit d2050b8

Please sign in to comment.