sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    Webdialogs: inputbox shows black background (sketchup webkit

    已排程 已置頂 已鎖定 已移動 SketchUp Bug Reporting
    sketchup
    50 貼文 22 Posters 37.4k 瀏覽 22 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • D 離線
      driven
      最後由 編輯

      hi Phaseone,
      Welcome to SCF and thanks for the guide on how to instal my GreaseKit solution.

      It made me revisit the issue and I realise now that there is an even easier way to do this. [i.e. without SIMBL, GreaseKit or js injection]

      In an earlier post from Aerilius
      @unknownuser said:

      Another idea, would a WebView also accept a user stylesheet (that would override the default background in all websites+webdialogs in SketchUp)?

      Yes, Safari does it from the preference menu and I now have it working in SU, but what's the simplest way to share the 'how to'.

      First you need a css file containing the patch code, in a place SU can find. So copy paste this into Ruby Console and hit return.

      directory='/Library/Application Support/Google SketchUp 8/SketchUp/plugins/__InputPatch/'
      Dir;;mkdir(directory) unless File.exists?(directory)
      filename='inputPatch.css'
      File.open(directory + filename, 'w') do |iP|
      iP.puts <<PATCH
      input;not([type=button]);not([type=file]);not([type=checkbox]);not([type=image]);not([type=radio]);not([type=reset]);not([type=search]);not([type=submit]){background-color; rgb(255, 255, 255); border-bottom-color; rgb(238, 238, 238); border-bottom-style; inset; border-bottom-width; 1px; border-collapse; separate; border-left-color; rgb(238, 238, 238); border-left-style; inset; border-left-width; 1px; border-right-color; rgb(238, 238, 238); border-right-style; inset; border-right-width; 1px; border-top-color; rgb(238, 238, 238); border-top-style; inset; border-top-width; 1px;}
      PATCH
      end
      

      it makes a folder + file in /Library/Application Support/Google SketchUp 8/SketchUp/plugins/

      Then if you have Pro8 copy/paste and return this.

      `defaults write ~/Library/Preferences/com.google.sketchuppro8.plist WebKitUserStyleSheetEnabledPreferenceKey -bool True`
      `defaults write ~/Library/Preferences/com.google.sketchuppro8.plist WebKitUserStyleSheetLocationPreferenceKey '/Library/Application Support/Google SketchUp 8/SketchUp/plugins/__InputPatch/inputPatch.css'`
      
      

      or for free try

      `defaults write ~/Library/Preferences/com.google.sketchupfree8.plist WebKitUserStyleSheetEnabledPreferenceKey -bool True`
      `defaults write ~/Library/Preferences/com.google.sketchupfree8.plist WebKitUserStyleSheetLocationPreferenceKey '/Library/Application Support/Google SketchUp 8/SketchUp/plugins/__InputPatch/inputPatch.css'`
      
      

      Restart SU
      You only need to do this once, and all your input boxes in SU will work correctly [without editing any files]
      If the problem is resolved in the future you can just bin the __inputPatch Folder

      john

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 條回覆 最後回覆 回覆 引用 0
      • M 離線
        mwm5053
        最後由 編輯

        thanks John for this fix. Works great
        Walt

        2011 iMac
        SU 2015 Pro, 2017 Make
        V2 Twilight
        macOS Sierra 10.12.5

        1 條回覆 最後回覆 回覆 引用 0
        • nickN 離線
          nick
          最後由 編輯

          Thanks John

          That's magic; a very elegant solution.

          Nick

          1 條回覆 最後回覆 回覆 引用 0
          • mariochaM 離線
            mariocha
            最後由 編輯

            YEaH !!! 😄 John !
            Corrected !
            I had to do it twice.
            (The cursor jumps at the end of the pasted text, so one does not see at once what has just been pasted in the Ruby console input field.)

            %(#008000)[Mario C.
            Every rule has exceptions, but some.]

            1 條回覆 最後回覆 回覆 引用 0
            • solid-woodS 離線
              solid-wood
              最後由 編輯

              @driven said:

              hi Phaseone,
              Welcome to SCF and thanks for the guide on how to instal my GreaseKit solution.

              It made me revisit the issue and I realise now that there is an even easier way to do this. [i.e. without SIMBL, GreaseKit or js injection]

              In an earlier post from Aerilius
              @unknownuser said:

              Another idea, would a WebView also accept a user stylesheet (that would override the default background in all websites+webdialogs in SketchUp)?

              Yes, Safari does it from the preference menu and I now have it working in SU, but what's the simplest way to share the 'how to'.

              First you need a css file containing the patch code, in a place SU can find. So copy paste this into Ruby Console and hit return.

              Restart SU
              You only need to do this once, and all your input boxes in SU will work correctly [without editing any files]
              If the problem is resolved in the future you can just bin the __inputPatch Folder

              john

              Hi,

              I have the same problem as a lot of others, I guess. Mac OS 10.6.8 + SU Pro 8.0.15157.
              Tried your solution, and it works on DC's, but not on everything...or at least not with Fredo6 Tools, SU Clock etc etc.
              I had the problem with 1001Bit plug but with the upgrade it was fixed.
              Is it that the maker of the plugin does something wrong when writing the code (miss something)?
              After your fix I seem to have no problem with DC's. That helps a lot - THANKS!
              Is there something else to do? Tried your fix many times to make sure I did it right. Think I did.
              Look at the result (pic). Is that "nil" OK?? ...or am I doing something when pasting?

              Do you know if a full upgrade to Mountain Lion helps? Does anyone know?
              Thankful for some help.
              Cheers


              11.jpg

              1 條回覆 最後回覆 回覆 引用 0
              • D 離線
                driven
                最後由 編輯

                Mountain Lion and SU8 Maintenance release 'M4' appears to have fixed the blackouts here.

                I renamed my 'fix' folder to disable it and all I have checked works.

                ML is much better IMHO.

                john

                learn from the mistakes of others, you may not live long enough to make them all yourself...

                1 條回覆 最後回覆 回覆 引用 0
                • solid-woodS 離線
                  solid-wood
                  最後由 編輯

                  @driven said:

                  Mountain Lion and SU8 Maintenance release 'M4' appears to have fixed the blackouts here.

                  I renamed my 'fix' folder to disable it and all I have checked works.

                  ML is much better IMHO.

                  john

                  Hi John,

                  Thanks! Can You tell me where to find "M4"? When I download from Trimble, it's only the "M3"...?????
                  When did they release M4, I downloaded today, 20120904, and it is still the same.

                  Cheers
                  Jan

                  1 條回覆 最後回覆 回覆 引用 0
                  • TIGT 離線
                    TIG Moderator
                    最後由 編輯

                    http://www.sketchup.com/intl/en/download/index.html should get you v8M4 ?

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • Dan RathbunD 離線
                      Dan Rathbun
                      最後由 編輯

                      It will take the "team" awhile to get the localized language releases ready.

                      I'm not here much anymore.

                      1 條回覆 最後回覆 回覆 引用 0
                      • solid-woodS 離線
                        solid-wood
                        最後由 編輯

                        @dan rathbun said:

                        It will take the "team" awhile to get the localized language releases ready.

                        Hi,
                        I guess Your right. I still get an older version....
                        Waiting for the ice-cream is something that I always had a hard time for.

                        Cheers,

                        JF

                        BTW You guys are fantastic....T, D, TT, F, ....well You know who I think of.
                        A BIG BIG hand for all of You!

                        THANK YOU SO MUCH

                        1 條回覆 最後回覆 回覆 引用 0
                        • 1
                        • 2
                        • 3
                        • 3 / 3
                        • 第一個貼文
                          最後的貼文
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement