From 57b37971f6d10458de538940a3ac405ed1687b91 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Sat, 17 Dec 2016 10:15:52 +0100 Subject: [PATCH] add svg warning icon --- misc/icons/source/common-warning-red.svg | 64 ++++++++++++++++++ src/css/dialogs-performance-info.css | 12 +++- src/img/icons/common/common-warning-red.png | Bin 285 -> 446 bytes .../icons/common/common-warning-red@2x.png | Bin 357 -> 851 bytes src/templates/dialogs/performance-info.html | 33 +++++---- 5 files changed, 93 insertions(+), 16 deletions(-) create mode 100644 misc/icons/source/common-warning-red.svg diff --git a/misc/icons/source/common-warning-red.svg b/misc/icons/source/common-warning-red.svg new file mode 100644 index 00000000..ba09fc4d --- /dev/null +++ b/misc/icons/source/common-warning-red.svg @@ -0,0 +1,64 @@ + + + +image/svg+xml + + \ No newline at end of file diff --git a/src/css/dialogs-performance-info.css b/src/css/dialogs-performance-info.css index 2d9d745e..132e8954 100644 --- a/src/css/dialogs-performance-info.css +++ b/src/css/dialogs-performance-info.css @@ -22,7 +22,7 @@ #dialog-container.performance-info { width: 500px; - height: 575px; + height: 525px; top : 50%; left : 50%; position : absolute; @@ -54,3 +54,13 @@ .show #dialog-container.performance-info { margin-top: -300px; } + +.dialog-performance-info-body .warning-icon { + float: left; + margin-top: 10px; +} + +.dialog-performance-info-body .warning-icon-info { + overflow: hidden; + margin-left: 30px; +} diff --git a/src/img/icons/common/common-warning-red.png b/src/img/icons/common/common-warning-red.png index 506482f1c5d153350c9a948ec40a21695fa9afb3..c5f4ea80d186c0d5954126f85412050df82a07ed 100644 GIT binary patch delta 420 zcmV;V0bBl^0=@%~B!2{RLP=Bz2nYy#2xN!=000SaNLh0L00!&;00!&<9(6c10000P zbVXQnQ*UN;cVTj60C#tHE@^ISb7Ns}WiD@WXPfRk8UO$RJ4r-AR5*>*l}kzkK^TO; z76kKNiQ*-428oNf2*gc}Ac&g?BEHC(ynsj+*#rrQAb0>ZF@KLMlnYAJ@L4VuxwzUK!K_UD0;oOA-K@c>po7MyCvusc(2_`OT*sEGstsB;3K`{&T z(gpoFuVSw<=k@JfBtxMrm^xfvc=o)Y>&{IDr6lOJgT2TOb|YTT`KvhebBi;FY7xMF z#H%?!6O?1njsxAqTlN#&bzLV0{dzB#?c>;ux=sE1BptW!`XK$2-^mBD`=d+vo*{|= O0000ZvY#B4*|~^cnW3UAut2l2>52;6{uPs0Ax;WQ>d{lAQMAs zJAWn(Ug*sX8)q3`jUY%tdLHjIwsJ5Bg z2?NwChTJA=Dh0}HJ?P0&E6e~B(AH<2aDrwFy}KXT_E6Wd9(Q<9B8jErc$u151`!Jl zEhE$Vedq)W<+{5x_|;MV(L#ErSAn{|_3ZTN`)7w+pg$e?ZWdKADf$2a002ovPDHLk HV1fVuIl6N^ diff --git a/src/img/icons/common/common-warning-red@2x.png b/src/img/icons/common/common-warning-red@2x.png index 85ad393429f3123a8fb79e47f25ef2a61902a3ad..bb24901b1a991e4f88bdbcb9023998e5364de424 100644 GIT binary patch delta 829 zcmV-D1H$~}0@DVNBYyw{b3#c}2nYxWdI?R8bVi zKi8Qgqi|DyKopaSWWRqP2nM-vp+s(6yK>{kRY?mM{U3rLf`8fci+&)waN{Dupdzut zLJBm(bXAR>7GCMj@lM{EcV|TEz-8v0^F8N$?wL39-aI2B>;zzIY?Bxw_4qPNM1{ASmdrHL@rWD_+e z1H2(0^rn5i+A7MwZ0OdqpI;ofodCDar`URS8X+J&PaJd;gn~Z-A>${=&a-K zRyi924dnzKQw`q>q@8%yiDeys+G^e0(PDasUqX#J4Rk2)03tc(c)|OAQ!}7)uVYMO zaQ`BvnSWIinG;AUjr()dt70je$@VuC(Y4PFaW zd324ArqL6xvbk=p`*A?wf@hkY1+=w}rnZ2l(^KzU4A94_=u5G;hXwRGf!tr>#@29a zK1v1(mpr@g*db>^U}6VNho|nvB%n`Kv6-NAI)7xrjH>;lG*GzW*>zh0z+DNsL_(XV z{^e3YpQ|F%fsQ}A00000NkvXX Hu0mjfF}{Dq delta 331 zcmV-R0kr`>##%NS0u)(8 zHtkvbEb##q`Y5MpY0@9ychPTpd>fQ$|^Uy8W~NB}=~Q@|Yh_)}$pK z{n%OaLZjA%w}4t9ZC3|(N>Hs20qTWhTVG7Eb%tw{O;ES{%sE|9PeJx(>aAm@o)nZl zM_X7IC^N~ryF{6IRQF&MO<;<8Vo+TO>M5$2)81@xL3_JbVaSrB_niRmdP{*bWB;IP dyJ3vJ02fxAE6{~J3IG5A07*qoM6N<$f&i}|og@GN diff --git a/src/templates/dialogs/performance-info.html b/src/templates/dialogs/performance-info.html index 5bd7c7ce..98d72da1 100644 --- a/src/templates/dialogs/performance-info.html +++ b/src/templates/dialogs/performance-info.html @@ -5,25 +5,28 @@ X
-

Your current sprite exceeds the recommendations for Piskel.

-

The specifications are based on:

-
    -
  • sprite resolution ?
  • -
  • number of frames ?
  • -
  • number of layers ?
  • -
  • number of colors ?
  • -
-

You can ignore this message and continue working with your sprite but you might experience the following issues:

+

The current sprite may exceed the recommendations for Piskel.

+

You can ignore this warning and continue working with your sprite but you might experience the following issues:

    -
  • unable to save
  • +
  • saving failures
  • slowdowns
  • crashes
-

If you do ignore this warning and proceed, please make sure to save often!

-

We strive to improve Piskel as well as its performance and stability, but this is only a personal project with limited time and resources.

-

So for now we prefer to warn you early rather than having you lose your work.

-

Feel free to give us feedback about this feature at https://github.com/juliandescottes/piskel

-

Thank you for your understanding.

+

If you ignore this warning, please save often!

+

To fix the issue, try adjusting your sprite settings:

+
    +
  • sprite resolution ?
  • +
  • number of layers ?
  • +
  • number of frames ?
  • +
  • number of colors ?
  • +
+

We strive to improve Piskel, its performances and stability, but this is a personal project with limited time and resources. + We prefer to warn you early rather than having you lose your work.

+

Feedback welcome at https://github.com/juliandescottes/piskel

+

+

 
+
This icon will remain on the top-bottom of the application until the performance issue is fixed. You can click on it at anytime to display this information again.
+

\ No newline at end of file