Skip to content

Commit

Permalink
Add some mail icons to our standard list
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Oct 9, 2018
1 parent 51dbaf9 commit 4d5f5a4
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 1 deletion.
32 changes: 32 additions & 0 deletions theme/bundled-icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ var warningDark = &fyne.StaticResource{
StaticName: "warning-dark.svg",
StaticContent: []byte{
60, 63, 120, 109, 108, 32, 118, 101, 114, 115, 105, 111, 110, 61, 34, 49, 46, 48, 34, 32, 101, 110, 99, 111, 100, 105, 110, 103, 61, 34, 117, 116, 102, 45, 56, 34, 63, 62, 10, 60, 33, 45, 45, 32, 71, 101, 110, 101, 114, 97, 116, 111, 114, 58, 32, 65, 100, 111, 98, 101, 32, 73, 108, 108, 117, 115, 116, 114, 97, 116, 111, 114, 32, 49, 57, 46, 49, 46, 48, 44, 32, 83, 86, 71, 32, 69, 120, 112, 111, 114, 116, 32, 80, 108, 117, 103, 45, 73, 110, 32, 46, 32, 83, 86, 71, 32, 86, 101, 114, 115, 105, 111, 110, 58, 32, 54, 46, 48, 48, 32, 66, 117, 105, 108, 100, 32, 48, 41, 32, 32, 45, 45, 62, 10, 60, 115, 118, 103, 32, 118, 101, 114, 115, 105, 111, 110, 61, 34, 49, 46, 49, 34, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 120, 109, 108, 110, 115, 58, 120, 108, 105, 110, 107, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 49, 57, 57, 57, 47, 120, 108, 105, 110, 107, 34, 32, 120, 61, 34, 48, 112, 120, 34, 32, 121, 61, 34, 48, 112, 120, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 112, 120, 34, 10, 9, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 112, 120, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 32, 101, 110, 97, 98, 108, 101, 45, 98, 97, 99, 107, 103, 114, 111, 117, 110, 100, 61, 34, 110, 101, 119, 32, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 32, 120, 109, 108, 58, 115, 112, 97, 99, 101, 61, 34, 112, 114, 101, 115, 101, 114, 118, 101, 34, 62, 10, 9, 60, 103, 62, 10, 9, 9, 60, 112, 97, 116, 104, 32, 102, 105, 108, 108, 61, 34, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 49, 50, 44, 53, 46, 57, 57, 76, 49, 57, 46, 53, 51, 44, 49, 57, 72, 52, 46, 52, 55, 76, 49, 50, 44, 53, 46, 57, 57, 32, 77, 49, 50, 44, 50, 76, 49, 44, 50, 49, 104, 50, 50, 76, 49, 50, 44, 50, 76, 49, 50, 44, 50, 122, 34, 47, 62, 10, 9, 9, 60, 112, 111, 108, 121, 103, 111, 110, 32, 102, 105, 108, 108, 61, 34, 35, 102, 102, 102, 102, 102, 102, 34, 32, 112, 111, 105, 110, 116, 115, 61, 34, 49, 51, 44, 49, 54, 32, 49, 49, 44, 49, 54, 32, 49, 49, 44, 49, 56, 32, 49, 51, 44, 49, 56, 32, 49, 51, 44, 49, 54, 32, 9, 9, 34, 47, 62, 10, 9, 9, 60, 112, 111, 108, 121, 103, 111, 110, 32, 102, 105, 108, 108, 61, 34, 35, 102, 102, 102, 102, 102, 102, 34, 32, 112, 111, 105, 110, 116, 115, 61, 34, 49, 51, 44, 49, 48, 32, 49, 49, 44, 49, 48, 32, 49, 49, 44, 49, 52, 32, 49, 51, 44, 49, 52, 32, 49, 51, 44, 49, 48, 32, 9, 9, 34, 47, 62, 10, 9, 60, 47, 103, 62, 10, 60, 47, 115, 118, 103, 62, 10}}
var mailcomposeDark = &fyne.StaticResource{
StaticName: "mail-compose-dark.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 50, 48, 32, 52, 72, 52, 99, 45, 49, 46, 49, 32, 48, 45, 49, 46, 57, 57, 46, 57, 45, 49, 46, 57, 57, 32, 50, 76, 50, 32, 49, 56, 99, 48, 32, 49, 46, 49, 46, 57, 32, 50, 32, 50, 32, 50, 104, 49, 54, 99, 49, 46, 49, 32, 48, 32, 50, 45, 46, 57, 32, 50, 45, 50, 86, 54, 99, 48, 45, 49, 46, 49, 45, 46, 57, 45, 50, 45, 50, 45, 50, 122, 109, 48, 32, 52, 108, 45, 56, 32, 53, 45, 56, 45, 53, 86, 54, 108, 56, 32, 53, 32, 56, 45, 53, 118, 50, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62, 10}}
var mailforwardDark = &fyne.StaticResource{
StaticName: "mail-forward-dark.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 49, 50, 32, 56, 86, 52, 108, 56, 32, 56, 45, 56, 32, 56, 118, 45, 52, 72, 52, 86, 56, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62, 10}}
var mailreplyDark = &fyne.StaticResource{
StaticName: "mail-reply-dark.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 49, 48, 32, 57, 86, 53, 108, 45, 55, 32, 55, 32, 55, 32, 55, 118, 45, 52, 46, 49, 99, 53, 32, 48, 32, 56, 46, 53, 32, 49, 46, 54, 32, 49, 49, 32, 53, 46, 49, 45, 49, 45, 53, 45, 52, 45, 49, 48, 45, 49, 49, 45, 49, 49, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62, 10}}
var mailreplyallDark = &fyne.StaticResource{
StaticName: "mail-reply_all-dark.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 55, 32, 56, 86, 53, 108, 45, 55, 32, 55, 32, 55, 32, 55, 118, 45, 51, 108, 45, 52, 45, 52, 32, 52, 45, 52, 122, 109, 54, 32, 49, 86, 53, 108, 45, 55, 32, 55, 32, 55, 32, 55, 118, 45, 52, 46, 49, 99, 53, 32, 48, 32, 56, 46, 53, 32, 49, 46, 54, 32, 49, 49, 32, 53, 46, 49, 45, 49, 45, 53, 45, 52, 45, 49, 48, 45, 49, 49, 45, 49, 49, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 115, 116, 121, 108, 101, 61, 34, 102, 105, 108, 108, 58, 35, 102, 102, 102, 102, 102, 102, 34, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62, 10}}
var cancelLight = &fyne.StaticResource{
StaticName: "cancel-light.svg",
StaticContent: []byte{
Expand Down Expand Up @@ -86,3 +102,19 @@ var warningLight = &fyne.StaticResource{
StaticName: "warning-light.svg",
StaticContent: []byte{
60, 63, 120, 109, 108, 32, 118, 101, 114, 115, 105, 111, 110, 61, 34, 49, 46, 48, 34, 32, 101, 110, 99, 111, 100, 105, 110, 103, 61, 34, 117, 116, 102, 45, 56, 34, 63, 62, 10, 60, 33, 45, 45, 32, 71, 101, 110, 101, 114, 97, 116, 111, 114, 58, 32, 65, 100, 111, 98, 101, 32, 73, 108, 108, 117, 115, 116, 114, 97, 116, 111, 114, 32, 49, 57, 46, 49, 46, 48, 44, 32, 83, 86, 71, 32, 69, 120, 112, 111, 114, 116, 32, 80, 108, 117, 103, 45, 73, 110, 32, 46, 32, 83, 86, 71, 32, 86, 101, 114, 115, 105, 111, 110, 58, 32, 54, 46, 48, 48, 32, 66, 117, 105, 108, 100, 32, 48, 41, 32, 32, 45, 45, 62, 10, 60, 115, 118, 103, 32, 118, 101, 114, 115, 105, 111, 110, 61, 34, 49, 46, 49, 34, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 120, 109, 108, 110, 115, 58, 120, 108, 105, 110, 107, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 49, 57, 57, 57, 47, 120, 108, 105, 110, 107, 34, 32, 120, 61, 34, 48, 112, 120, 34, 32, 121, 61, 34, 48, 112, 120, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 112, 120, 34, 10, 9, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 112, 120, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 32, 101, 110, 97, 98, 108, 101, 45, 98, 97, 99, 107, 103, 114, 111, 117, 110, 100, 61, 34, 110, 101, 119, 32, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 32, 120, 109, 108, 58, 115, 112, 97, 99, 101, 61, 34, 112, 114, 101, 115, 101, 114, 118, 101, 34, 62, 10, 9, 60, 103, 62, 10, 9, 9, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 49, 50, 44, 53, 46, 57, 57, 76, 49, 57, 46, 53, 51, 44, 49, 57, 72, 52, 46, 52, 55, 76, 49, 50, 44, 53, 46, 57, 57, 32, 77, 49, 50, 44, 50, 76, 49, 44, 50, 49, 104, 50, 50, 76, 49, 50, 44, 50, 76, 49, 50, 44, 50, 122, 34, 47, 62, 10, 9, 9, 60, 112, 111, 108, 121, 103, 111, 110, 32, 112, 111, 105, 110, 116, 115, 61, 34, 49, 51, 44, 49, 54, 32, 49, 49, 44, 49, 54, 32, 49, 49, 44, 49, 56, 32, 49, 51, 44, 49, 56, 32, 49, 51, 44, 49, 54, 32, 9, 9, 34, 47, 62, 10, 9, 9, 60, 112, 111, 108, 121, 103, 111, 110, 32, 112, 111, 105, 110, 116, 115, 61, 34, 49, 51, 44, 49, 48, 32, 49, 49, 44, 49, 48, 32, 49, 49, 44, 49, 52, 32, 49, 51, 44, 49, 52, 32, 49, 51, 44, 49, 48, 32, 9, 9, 34, 47, 62, 10, 9, 60, 47, 103, 62, 10, 60, 47, 115, 118, 103, 62, 10}}
var mailcomposeLight = &fyne.StaticResource{
StaticName: "mail-compose-light.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 50, 48, 32, 52, 72, 52, 99, 45, 49, 46, 49, 32, 48, 45, 49, 46, 57, 57, 46, 57, 45, 49, 46, 57, 57, 32, 50, 76, 50, 32, 49, 56, 99, 48, 32, 49, 46, 49, 46, 57, 32, 50, 32, 50, 32, 50, 104, 49, 54, 99, 49, 46, 49, 32, 48, 32, 50, 45, 46, 57, 32, 50, 45, 50, 86, 54, 99, 48, 45, 49, 46, 49, 45, 46, 57, 45, 50, 45, 50, 45, 50, 122, 109, 48, 32, 52, 108, 45, 56, 32, 53, 45, 56, 45, 53, 86, 54, 108, 56, 32, 53, 32, 56, 45, 53, 118, 50, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62}}
var mailforwardLight = &fyne.StaticResource{
StaticName: "mail-forward-light.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 49, 50, 32, 56, 86, 52, 108, 56, 32, 56, 45, 56, 32, 56, 118, 45, 52, 72, 52, 86, 56, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62}}
var mailreplyLight = &fyne.StaticResource{
StaticName: "mail-reply-light.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 49, 48, 32, 57, 86, 53, 108, 45, 55, 32, 55, 32, 55, 32, 55, 118, 45, 52, 46, 49, 99, 53, 32, 48, 32, 56, 46, 53, 32, 49, 46, 54, 32, 49, 49, 32, 53, 46, 49, 45, 49, 45, 53, 45, 52, 45, 49, 48, 45, 49, 49, 45, 49, 49, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62}}
var mailreplyallLight = &fyne.StaticResource{
StaticName: "mail-reply_all-light.svg",
StaticContent: []byte{
60, 115, 118, 103, 32, 120, 109, 108, 110, 115, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 119, 51, 46, 111, 114, 103, 47, 50, 48, 48, 48, 47, 115, 118, 103, 34, 32, 119, 105, 100, 116, 104, 61, 34, 50, 52, 34, 32, 104, 101, 105, 103, 104, 116, 61, 34, 50, 52, 34, 32, 118, 105, 101, 119, 66, 111, 120, 61, 34, 48, 32, 48, 32, 50, 52, 32, 50, 52, 34, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 55, 32, 56, 86, 53, 108, 45, 55, 32, 55, 32, 55, 32, 55, 118, 45, 51, 108, 45, 52, 45, 52, 32, 52, 45, 52, 122, 109, 54, 32, 49, 86, 53, 108, 45, 55, 32, 55, 32, 55, 32, 55, 118, 45, 52, 46, 49, 99, 53, 32, 48, 32, 56, 46, 53, 32, 49, 46, 54, 32, 49, 49, 32, 53, 46, 49, 45, 49, 45, 53, 45, 52, 45, 49, 48, 45, 49, 49, 45, 49, 49, 122, 34, 47, 62, 60, 112, 97, 116, 104, 32, 100, 61, 34, 77, 48, 32, 48, 104, 50, 52, 118, 50, 52, 72, 48, 122, 34, 32, 102, 105, 108, 108, 61, 34, 110, 111, 110, 101, 34, 47, 62, 60, 47, 115, 118, 103, 62}}
12 changes: 11 additions & 1 deletion theme/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import "github.com/fyne-io/fyne"

const fontFace = "NotoSans"

func formatVariable(name string) string {
str := strings.Replace(name, "-", "", -1)
return strings.Replace(str, "_", "", -1)
}

func bundleFile(name string, filepath string, f *os.File) {
bytes, err := ioutil.ReadFile(filepath)
if err != nil {
Expand All @@ -21,7 +26,7 @@ func bundleFile(name string, filepath string, f *os.File) {
}
res := fyne.NewStaticResource(path.Base(filepath), bytes)

_, err = f.WriteString("var " + strings.Replace(name, "-", "", -1) + " = " + res.ToGo() + "\n")
_, err = f.WriteString("var " + formatVariable(name) + " = " + res.ToGo() + "\n")
if err != nil {
fmt.Println("Unable to write to bundled file")
}
Expand Down Expand Up @@ -101,6 +106,11 @@ func main() {
bundleIcon("info", theme, f)
bundleIcon("question", theme, f)
bundleIcon("warning", theme, f)

bundleIcon("mail-compose", theme, f)
bundleIcon("mail-forward", theme, f)
bundleIcon("mail-reply", theme, f)
bundleIcon("mail-reply_all", theme, f)
}
f.Close()
}
26 changes: 26 additions & 0 deletions theme/icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func (res *darkLightResource) CachePath() string {
var cancel, confirm, checked, unchecked *darkLightResource
var contentCut, contentCopy, contentPaste *darkLightResource
var info, question, warning *darkLightResource
var mailCompose, mailForward, mailReply, mailReplyAll *darkLightResource

func init() {
cancel = &darkLightResource{cancelDark, cancelLight}
Expand All @@ -48,6 +49,11 @@ func init() {
info = &darkLightResource{infoDark, infoLight}
question = &darkLightResource{questionDark, questionLight}
warning = &darkLightResource{warningDark, warningLight}

mailCompose = &darkLightResource{mailcomposeDark, mailcomposeLight}
mailForward = &darkLightResource{mailforwardDark, mailforwardLight}
mailReply = &darkLightResource{mailreplyDark, mailreplyLight}
mailReplyAll = &darkLightResource{mailreplyallDark, mailreplyallLight}
}

// FyneLogo returns a resource containing the Fyne logo
Expand Down Expand Up @@ -104,3 +110,23 @@ func QuestionIcon() fyne.Resource {
func WarningIcon() fyne.Resource {
return warning
}

// MailComposeIcon returns a resource containing the standard mail compose icon for the current theme
func MailComposeIcon() fyne.Resource {
return mailCompose
}

// MailForwardIcon returns a resource containing the standard mail forward icon for the current theme
func MailForwardIcon() fyne.Resource {
return mailForward
}

// MailReplyIcon returns a resource containing the standard mail reply icon for the current theme
func MailReplyIcon() fyne.Resource {
return mailReply
}

// MailReplyAllIcon returns a resource containing the standard mail reply all icon for the current theme
func MailReplyAllIcon() fyne.Resource {
return mailReplyAll
}
1 change: 1 addition & 0 deletions theme/icons/mail-compose-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-compose-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-forward-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-forward-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-reply-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-reply-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-reply_all-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions theme/icons/mail-reply_all-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d5f5a4

Please sign in to comment.