Skip to content

Commit f6def3b

Browse files
authored
Add icons for stroke align, cap, join, and order (#4136)
1 parent 98daa75 commit f6def3b

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

.branding

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
https://github.com/Keavon/graphite-branded-assets/archive/b83626b10f0f9102503c845354e9e3f161949ce0.tar.gz
2-
353e9cba90f420b11863055a32e554937638b47d1539632ef0e8a30f37a353d7
1+
https://github.com/Keavon/graphite-branded-assets/archive/69b92281fa4640c8df994c5bf441ba78ae43c6c9.tar.gz
2+
3b827e8731a1214f1eca0240b9c2622697dc9e9ebfddc3a640ff88fb463161af

frontend/src/icons.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ import StackLower from "/../branding/assets/icon-16px-solid/stack-lower.svg";
199199
import StackRaise from "/../branding/assets/icon-16px-solid/stack-raise.svg";
200200
import StackReverse from "/../branding/assets/icon-16px-solid/stack-reverse.svg";
201201
import Stack from "/../branding/assets/icon-16px-solid/stack.svg";
202+
import StrokeAlignCenter from "/../branding/assets/icon-16px-solid/stroke-align-center.svg";
203+
import StrokeAlignInside from "/../branding/assets/icon-16px-solid/stroke-align-inside.svg";
204+
import StrokeAlignOutside from "/../branding/assets/icon-16px-solid/stroke-align-outside.svg";
205+
import StrokeCapButt from "/../branding/assets/icon-16px-solid/stroke-cap-butt.svg";
206+
import StrokeCapRound from "/../branding/assets/icon-16px-solid/stroke-cap-round.svg";
207+
import StrokeCapSquare from "/../branding/assets/icon-16px-solid/stroke-cap-square.svg";
208+
import StrokeJoinBevel from "/../branding/assets/icon-16px-solid/stroke-join-bevel.svg";
209+
import StrokeJoinMiter from "/../branding/assets/icon-16px-solid/stroke-join-miter.svg";
210+
import StrokeJoinRound from "/../branding/assets/icon-16px-solid/stroke-join-round.svg";
211+
import StrokeOrderAbove from "/../branding/assets/icon-16px-solid/stroke-order-above.svg";
212+
import StrokeOrderBelow from "/../branding/assets/icon-16px-solid/stroke-order-below.svg";
202213
import TextAlignCenter from "/../branding/assets/icon-16px-solid/text-align-center.svg";
203214
import TextAlignLeft from "/../branding/assets/icon-16px-solid/text-align-left.svg";
204215
import TextAlignRight from "/../branding/assets/icon-16px-solid/text-align-right.svg";
@@ -327,6 +338,17 @@ const SOLID_16PX = {
327338
StackLower: { svg: StackLower, size: 16 },
328339
StackRaise: { svg: StackRaise, size: 16 },
329340
StackReverse: { svg: StackReverse, size: 16 },
341+
StrokeAlignCenter: { svg: StrokeAlignCenter, size: 16 },
342+
StrokeAlignInside: { svg: StrokeAlignInside, size: 16 },
343+
StrokeAlignOutside: { svg: StrokeAlignOutside, size: 16 },
344+
StrokeCapButt: { svg: StrokeCapButt, size: 16 },
345+
StrokeCapRound: { svg: StrokeCapRound, size: 16 },
346+
StrokeCapSquare: { svg: StrokeCapSquare, size: 16 },
347+
StrokeJoinBevel: { svg: StrokeJoinBevel, size: 16 },
348+
StrokeJoinMiter: { svg: StrokeJoinMiter, size: 16 },
349+
StrokeJoinRound: { svg: StrokeJoinRound, size: 16 },
350+
StrokeOrderAbove: { svg: StrokeOrderAbove, size: 16 },
351+
StrokeOrderBelow: { svg: StrokeOrderBelow, size: 16 },
330352
TextAlignCenter: { svg: TextAlignCenter, size: 16 },
331353
TextAlignLeft: { svg: TextAlignLeft, size: 16 },
332354
TextAlignRight: { svg: TextAlignRight, size: 16 },

node-graph/libraries/vector-types/src/vector/style.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,11 @@ impl From<Fill> for FillChoice {
230230
#[widget(Radio)]
231231
pub enum StrokeCap {
232232
#[default]
233+
#[icon("StrokeCapButt")]
233234
Butt,
235+
#[icon("StrokeCapRound")]
234236
Round,
237+
#[icon("StrokeCapSquare")]
235238
Square,
236239
}
237240

@@ -252,8 +255,11 @@ impl StrokeCap {
252255
#[widget(Radio)]
253256
pub enum StrokeJoin {
254257
#[default]
258+
#[icon("StrokeJoinMiter")]
255259
Miter,
260+
#[icon("StrokeJoinBevel")]
256261
Bevel,
262+
#[icon("StrokeJoinRound")]
257263
Round,
258264
}
259265

@@ -274,8 +280,11 @@ impl StrokeJoin {
274280
#[widget(Radio)]
275281
pub enum StrokeAlign {
276282
#[default]
283+
#[icon("StrokeAlignCenter")]
277284
Center,
285+
#[icon("StrokeAlignInside")]
278286
Inside,
287+
#[icon("StrokeAlignOutside")]
279288
Outside,
280289
}
281290

@@ -292,7 +301,9 @@ impl StrokeAlign {
292301
#[widget(Radio)]
293302
pub enum PaintOrder {
294303
#[default]
304+
#[icon("StrokeOrderAbove")]
295305
StrokeAbove,
306+
#[icon("StrokeOrderBelow")]
296307
StrokeBelow,
297308
}
298309

0 commit comments

Comments
 (0)