From da5e3fa299f6cac5ee9a4b0c50062dda1e91c8e2 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 10 May 2020 16:55:22 +0200 Subject: [PATCH] Changed image of openid-connect logo for better look on arc-green theme (#11312) * Set background of openIDConnect logo to white in arc-green theme * Fixed linting off arc-green theme Signed-off-by: Leo Maroni * Revert changes of first commit (white background) and replaced the image * Updated openid_connect (part 2) * Update public/img/auth/openid_connect.svg Now in one line Co-authored-by: silverwind Co-authored-by: silverwind Co-authored-by: zeripath Co-authored-by: Lauris BH --- docs/content/doc/advanced/cmd-embedded.en-us.md | 2 +- models/oauth2.go | 2 +- public/img/auth/openid_connect.png | Bin 4084 -> 0 bytes public/img/auth/openid_connect.svg | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 public/img/auth/openid_connect.png create mode 100644 public/img/auth/openid_connect.svg diff --git a/docs/content/doc/advanced/cmd-embedded.en-us.md b/docs/content/doc/advanced/cmd-embedded.en-us.md index 814d0baac8..7144aed4d6 100644 --- a/docs/content/doc/advanced/cmd-embedded.en-us.md +++ b/docs/content/doc/advanced/cmd-embedded.en-us.md @@ -54,7 +54,7 @@ Listing all embedded files with `openid` in their path: ``` $ gitea embedded list '**openid**' -public/img/auth/openid_connect.png +public/img/auth/openid_connect.svg public/img/openid-16x16.png templates/user/auth/finalize_openid.tmpl templates/user/auth/signin_openid.tmpl diff --git a/models/oauth2.go b/models/oauth2.go index 1fb4783d03..ccf24eb35d 100644 --- a/models/oauth2.go +++ b/models/oauth2.go @@ -41,7 +41,7 @@ var OAuth2Providers = map[string]OAuth2Provider{ }, }, "gplus": {Name: "gplus", DisplayName: "Google", Image: "/img/auth/google.png"}, - "openidConnect": {Name: "openidConnect", DisplayName: "OpenID Connect", Image: "/img/auth/openid_connect.png"}, + "openidConnect": {Name: "openidConnect", DisplayName: "OpenID Connect", Image: "/img/auth/openid_connect.svg"}, "twitter": {Name: "twitter", DisplayName: "Twitter", Image: "/img/auth/twitter.png"}, "discord": {Name: "discord", DisplayName: "Discord", Image: "/img/auth/discord.png"}, "gitea": {Name: "gitea", DisplayName: "Gitea", Image: "/img/auth/gitea.png", diff --git a/public/img/auth/openid_connect.png b/public/img/auth/openid_connect.png deleted file mode 100644 index 3d0de52e4e4a0f8b476bdbf90e13511247a111b4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4084 zcmV#P)l65Jka#?(Y2;id_D1i7h$P!WaMmz`Y6rgG)ge#Ri{qk=HxsJl-KmBk^{JB#Xr3 z9dlmqnDctaoWnchh34GdA&<*Q+}$CFggfrQ9k}BT+<`lA#~ru>cie$Ha0l+V19#x= zKjMx%a0l+d9e3ak+;Io)z#XKjo3`tR`m?)X?54S1?1s=bcjF*m+`SmPb|vuosYf8m{1I`$2wtC*wrlg)NFZ!JYbQ!=>!qAg8#KzNzf3dNZ8V zGLM6t>`tafcFt_MbyW$&eQ#&*Y%GLkgwA>Y=i8&R{*sHP(K1mH*ZyvUEz~=paw|G>cOHZGXHw&`dr34(HDuNbe5(ZwHRiG2p4XpYIMBx4hBac2Rt)kh{xnAs-~t zSG9m`U%(wG`-P1zB3&yGu|P)kPBbc3Qahy17Q`TcECKX+}S0Do=JdxEX_#PCv<=^HtNSSzH&d;TO{Ri9HWW&c%uXDCEV`U$BMT;-|U; zZL_Q{z6Zx*+b8#{oZk21kb`HEp9D$Os-Nr*m&Dh_L#WNE1bdByxtcTaxcZAB=8ags zfIBK8>Y}XfbDL(L*yjHscSqu>qLM%4xfgIpUHyd?5~dK;1n&5WHtA>D`c6e4RIYgi zchrgvPw1vx6s2${PqZC~rK#_96sD~2w6EZf%9w_?-Eq7VrEs_Xcw%Cu;2wb=Nf=^L z?r#)D5nC2FPU%irIggyUY_`8r0(U|$MRZrj_aF6R3+>%MbYDw<82K9A3Cn~f%IcmT z=pDSyZfwgzC2~hv?rL5*b&8&JC$A_0Hi&$)<7?{l>*>)B+p3;piuh$h zsx|LNM=NqnYm+@{!H(W8O(uF`Q2e!0N5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qTFDY*Z2P5!Y@ zW}HR~>?R{#PhOo+(YkyV6wmG@VxG+=%j~9CgUGXipji#z_p4w{Nij_K)+=Srk)obn z-B^n`Q<`4gRX!RhGBT9F*+9`xA0YEbgLUuV0wFg#ePa^7Wr+1)Mdf^6tE$S=E_^>(qwG#xdX%v+I3941lBn0jOS9aH_! z`?d5$%<^UC;n^*6*g>I~)2L*2T2x^%mr+xGZ*9Y6Q^?I`r`Z*Z%C2TTHoLXHA*7AX zK7+~To3bx8wtqiiF%V>Zqp7_5F;9@_ss$!C1;y#s(k%%H|54Zv*^A;bJ0DBN>Vhex zie}cKTy}LCm)-o6MuPAqr)|;5aYE>o*!eBSzxpK2D~L3kLK?8xZyPo&mOLa^i4m}t zMrCJzkUP>>O)bbH(A1$u_CQ?30z4E9#wTs2P(Z`?eeK`Nu41al4$6*xvLyi!^J}XQ?mPzysOFOzA(S2~qs_8$59YR1$aY+DjQqLA`UxO(O{b>?xD_n&> zh@A!+8LrSZO&Ns^rfBMfDRvTFg+8gjo5krEivR);Rm)B`g#)wjdM&#OeNdj6QFS$R z-D$G007#Rm#h-#HTzwonOcq^S_0wV^8vC$=16~+@F0!l82hFRSU81>|iI!%C16BUq?U&k3T9#5$=Cw7sV$E?1o&w6J|?%MTK-_ z=d0QI4(vu;H)r%6Z`=*GUj9n;@S@=*bQ_mY2_ApSYU9s<`9u0r&Xflwoc<2b8AH?9}G5KNyH+ z(N+AirO^G2Bz<&$CNWBKnNjq`Ahpzu9W)!nmvjJ+V#!t7kVYyWLwV4>wdpALG_!E- zwG%splS%)^q%9IJ$t0Zlz7s8(WPJGEDqc=?arG6U1xTHXEJa2m{+(fxLQ2I zj=TnnkGQ8jyK3I(FuJl6E^k(iD@Z*43q$wn1_H z|4ZV}d8fU30=fR|@P64}m{whZ#5^23h?o~R&y0$wzND+4V diff --git a/public/img/auth/openid_connect.svg b/public/img/auth/openid_connect.svg new file mode 100644 index 0000000000..b4df684ed9 --- /dev/null +++ b/public/img/auth/openid_connect.svg @@ -0,0 +1 @@ +