]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "ui.gadgets.labeled: separate title-bar-interior with a comment why."
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 16 Aug 2015 15:04:58 +0000 (08:04 -0700)
committerAlexander Iljin <ajsoft@yandex.ru>
Sat, 8 Jun 2019 16:47:41 +0000 (18:47 +0200)
This reverts commit cb575c1ba86d07e6dd40788c9081fba01501f8ce.

basis/ui/gadgets/labeled/labeled.factor

index ce9daeaae6bd55a4064c29d1915ee8ef0a748948..d5412bd3dafa159453ca0336c2004f73bf844219 100644 (file)
@@ -11,16 +11,13 @@ TUPLE: labeled-gadget < track content ;
 
 M: labeled-gadget focusable-child* content>> ;
 
-! gradients don't work as backgrounds on windows, see #152 and #1397
-: title-bar-interior ( -- interior )
+: <title-bar> ( title -- title-bar )
+    >label [ t >>bold? ] change-font
+    { 0 4 } <border>
     os windows?
     [ toolbar-background <solid> ]
     [ title-bar-gradient <gradient> ]
-    if ;
-
-: <title-bar> ( title -- title-bar )
-    >label [ t >>bold? ] change-font
-    { 0 4 } <border> title-bar-interior >>interior ;
+    if >>interior ;
 
 PRIVATE>