Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 70a6a13

Browse files
committed
Merge pull request #221 from github/update-octicons
Update octicons
2 parents 24c16e5 + 8eaebcd commit 70a6a13

File tree

12 files changed

+560
-795
lines changed

12 files changed

+560
-795
lines changed

src/GitHub.Exports/UI/Octicon.cs

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ namespace GitHub.UI
55
public enum Octicon
66
{
77
alert,
8-
alignment_align,
9-
alignment_aligned_to,
10-
alignment_unalign,
118
arrow_down,
129
arrow_left,
1310
arrow_right,
@@ -16,7 +13,9 @@ public enum Octicon
1613
arrow_small_right,
1714
arrow_small_up,
1815
arrow_up,
19-
beer,
16+
beaker,
17+
bell,
18+
bold,
2019
book,
2120
bookmark,
2221
briefcase,
@@ -37,13 +36,13 @@ public enum Octicon
3736
cloud_download,
3837
cloud_upload,
3938
code,
40-
color_mode,
4139
comment_discussion,
4240
comment,
4341
credit_card,
4442
dash,
4543
dashboard,
4644
database,
45+
desktop_download,
4746
device_camera_video,
4847
device_camera,
4948
device_desktop,
@@ -83,18 +82,14 @@ public enum Octicon
8382
history,
8483
home,
8584
horizontal_rule,
86-
hourglass,
8785
hubot,
8886
inbox,
8987
info,
9088
issue_closed,
9189
issue_opened,
9290
issue_reopened,
91+
italic,
9392
jersey,
94-
jump_down,
95-
jump_left,
96-
jump_right,
97-
jump_up,
9893
key,
9994
keyboard,
10095
law,
@@ -105,6 +100,7 @@ public enum Octicon
105100
list_unordered,
106101
location,
107102
@lock,
103+
logo_gist,
108104
logo_github,
109105
mail_read,
110106
mail_reply,
@@ -113,14 +109,9 @@ public enum Octicon
113109
markdown,
114110
megaphone,
115111
mention,
116-
microscope,
117112
milestone,
118113
mirror,
119114
mortar_board,
120-
move_down,
121-
move_left,
122-
move_right,
123-
move_up,
124115
mute,
125116
no_newline,
126117
octoface,
@@ -130,17 +121,11 @@ public enum Octicon
130121
pencil,
131122
person,
132123
pin,
133-
playback_fast_forward,
134-
playback_pause,
135-
playback_play,
136-
playback_rewind,
137124
plug,
138125
plus,
139-
podium,
140126
primitive_dot,
141127
primitive_square,
142128
pulse,
143-
puzzle,
144129
question,
145130
quote,
146131
radio_tower,
@@ -153,23 +138,25 @@ public enum Octicon
153138
rocket,
154139
rss,
155140
ruby,
156-
screen_full,
157-
screen_normal,
158141
search,
159142
server,
160143
settings,
144+
shield,
161145
sign_in,
162146
sign_out,
163-
split,
147+
smiley,
164148
squirrel,
165149
star,
166-
steps,
167150
stop,
168151
sync,
169152
tag,
153+
tasklist,
170154
telescope,
171155
terminal,
156+
text_size,
172157
three_bars,
158+
thumbsdown,
159+
thumbsup,
173160
tools,
174161
trashcan,
175162
triangle_down,
@@ -178,7 +165,9 @@ public enum Octicon
178165
triangle_up,
179166
unfold,
180167
unmute,
168+
verified,
181169
versions,
170+
watch,
182171
x,
183172
zap,
184173
}

src/GitHub.UI.Reactive/Assets/Controls/ErrorMessageDisplay.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<ui:OcticonPath
2626
x:Name="icon"
2727
Icon="{TemplateBinding Icon}"
28-
Height="1024"
28+
Height="16"
2929
Fill="{TemplateBinding IconFill}" />
3030
</Viewbox>
3131
<ContentPresenter

src/GitHub.UI.Reactive/Assets/Controls/FilteredComboBox.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:ui="clr-namespace:GitHub.UI;assembly=GitHub.UI"
44
xmlns:uirx="clr-namespace:GitHub.UI">
55

6-
<PathGeometry x:Key="arrow" Figures="M 0,448 224,768 448,448" />
6+
<PathGeometry x:Key="arrow">M 0,6 3.5,11 7,6</PathGeometry>
77

88
<ControlTemplate x:Key="FilterComboBoxTemplate" TargetType="{x:Type uirx:FilteredComboBox}">
99
<Grid x:Name="MainGrid" SnapsToDevicePixels="true"
@@ -50,8 +50,7 @@
5050
Content="{TemplateBinding SelectionBoxItem}"
5151
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
5252
FontSize="12"
53-
IconHeight="16"
54-
IconWidth="8"
53+
IconWidth="7"
5554
Margin="{TemplateBinding Padding}"
5655
HorizontalContentAlignment="Left"
5756
BorderBrush="{TemplateBinding BorderBrush}"

src/GitHub.UI.Reactive/Assets/Controls/GitHubComboBox.xaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:ui="clr-namespace:GitHub.UI;assembly=GitHub.UI">
44

5-
<PathGeometry x:Key="arrow" Figures="M 0,448 224,768 448,448" />
5+
<PathGeometry x:Key="arrow">M 0,6 3.5,11 7,6</PathGeometry>
66

77
<ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ui:GitHubComboBox}">
88
<Grid x:Name="MainGrid" SnapsToDevicePixels="true"
@@ -37,8 +37,7 @@
3737
Content="{TemplateBinding SelectionBoxItem}"
3838
ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
3939
FontSize="12"
40-
IconHeight="16"
41-
IconWidth="8"
40+
IconWidth="7"
4241
Margin="{TemplateBinding Padding}"
4342
HorizontalContentAlignment="Left"
4443
BorderBrush="{TemplateBinding BorderBrush}"

src/GitHub.UI.Reactive/Assets/Controls/Validation/UserErrorMessages.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
HorizontalAlignment="Right"
2626
Width="16"
2727
Height="16">
28-
<ui:OcticonPath x:Name="icon" Icon="{TemplateBinding Icon}" Height="1024" Fill="{TemplateBinding Fill}" />
28+
<ui:OcticonPath x:Name="icon" Icon="{TemplateBinding Icon}" Height="16" Fill="{TemplateBinding Fill}" />
2929
</Viewbox>
3030
<ContentControl Grid.Column="1" Content="{Binding}">
3131
<ContentControl.Resources>

src/GitHub.UI.Reactive/Assets/Controls/Validation/ValidationMessage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<ui:OcticonPath
3434
x:Name="icon"
3535
Icon="{TemplateBinding Icon}"
36-
Height="1024"
36+
Height="16"
3737
Fill="{TemplateBinding Fill}"/>
3838
</Viewbox>
3939
<TextBlock Grid.Column="1" Text="{TemplateBinding Text}"
@@ -84,7 +84,7 @@
8484
x:Name="icon"
8585
Icon="stop"
8686
Fill="{StaticResource GitHubErrorAdornmentBrush}"
87-
Height="1024" />
87+
Height="16" />
8888
</Viewbox>
8989
</Grid>
9090
</ControlTemplate>

src/GitHub.UI/Controls/Buttons/OcticonCircleButton.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
Stretch="Uniform">
192192
<Path
193193
x:Name="octicon"
194-
Height="1024"
194+
Height="16"
195195
Stretch="None"
196196
Fill="{Binding Path=IconForeground,
197197
RelativeSource={RelativeSource TemplatedParent}}"
@@ -253,7 +253,7 @@
253253
RelativeSource={RelativeSource TemplatedParent}}"
254254
Stretch="Uniform">
255255
<Path
256-
Height="1024"
256+
Height="16"
257257
Stretch="None"
258258
Fill="{Binding Path=ActiveForeground,
259259
RelativeSource={RelativeSource TemplatedParent}}"

src/GitHub.UI/Controls/Buttons/OcticonLinkButton.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
Width="{Binding Path=IconWidth, RelativeSource={RelativeSource TemplatedParent}, FallbackValue=16.0}">
6161
<Path x:Name="octicon"
6262
SnapsToDevicePixels="True"
63-
Height="1024"
63+
Height="16"
6464
Data="{Binding Path=(Path.Data), RelativeSource={RelativeSource TemplatedParent}}">
6565
<Path.Fill>
6666
<SolidColorBrush Color="{DynamicResource GHBlueLinkButtonIconColor}" />

src/GitHub.UI/Controls/Octicons/OcticonImage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ui:OcticonPath
1919
Fill="{TemplateBinding Foreground}"
2020
Icon="{TemplateBinding Icon}"
21-
Height="1024"
21+
Height="16"
2222
SnapsToDevicePixels="True" />
2323
</Viewbox>
2424
</ui:FixedAspectRatioPanel>

0 commit comments

Comments
 (0)