Skip to content

Sticky Scroll Shadow/Border Customization #157185

Closed

Description

@demipixel

Especially in dark mode, it can be easy to miss that there's a shadow there (maybe I'm just blind).

Relavent section:

this.rootDomNode.style.boxShadow = `var(--vscode-scrollbar-shadow) 0 6px 6px -6px`; // '0px 0px 8px 2px #000000';

Would love if the box shadow and/or bottom-border was customizable in the theme.

Activity

  1. demipixel commented on Aug 6, 2022

    @demipixel
    Author

    I recently learned of editorStickyScroll.background which you can put in your theme, and I think it helps a lot, but I'll leave this ticket open since it would be a nice QoL and doesn't seem like it would be super difficult.

  2. Staindk commented on Aug 8, 2022

    @Staindk

    For what it's worth I can see the shadow quite clearly (even in your screenshot).

    You probably aren't blind 😅 - rather I think your monitor's gamma may be set a bit dark (or your monitor is bad at colour reproduction, or you work in weird lighting conditions, or or or).

    If you're on windows you could run "Calibrate display color" and see if that helps. Even if it's just to test out my theory (mess around with the gamma slider to check things out, and then hit cancel). You may also be able to set gamma in your monitor's OSD.

    I still think this is a worthwhile request though!

  3. jjspace commented on Aug 8, 2022

    @jjspace

    You can already modify that theme value in your settings. It's using the scrollbar.shadow which also applies to the breadcrumbs, the explorer, and likely other locations the app. Might not be worth adding a specific shadow property for this feature and stick to relying on the same scroll shadow that's used everywhere depending on the demand?

    {
      "workbench.colorCustomizations": {
        "scrollbar.shadow": "#ff0000"
      }
    }
  4. added
    feature-request
    on Aug 8, 2022
  5. vscodenpa commented on Aug 8, 2022

    @vscodenpa

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  6. The-Compiler commented on Aug 11, 2022

    @The-Compiler

    With Gruvbox Theme - Visual Studio Marketplace, I can't make out a shadow at all, on two different screens:

    image

    It looks like that theme defines a scrollbar.shadow which is the same color as editorWidget.background. I quite like the simplicity of it, but here it is confusing... Not sure if that could be considered a bug in the theme though.

    I ended up configuring editorStickyScroll.background instead, which I prefer:

    image

  7. trusktr commented on Aug 13, 2022

    @trusktr

    My theme didn't have any shadow either. Good to know about the background option.

  8. dashed commented on Aug 18, 2022

    @dashed

    For anyone else just as confused as I am on how to personalize this, you can edit settings.json with the following:

    {
      // ...
      "editor.experimental.stickyScroll.enabled": true,
      "workbench.colorCustomizations": {
        "editorStickyScroll.background": "#181a1f",
        "editorStickyScrollHover.background": "#272930"
      }
    }
    
  9. 9 remaining items

  10. added
    help wanted
    on Dec 8, 2022
  11. crystalfp commented on Dec 13, 2022

    @crystalfp

    Thanks for sharing the trick! At the end the best result is by changing the background.

     "workbench.colorCustomizations": {
        "editorStickyScroll.background": "#000000",
        "editorStickyScrollHover.background": "#272930"
      }
    

    Thanks again!
    mario

  12. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Dec 8, 2023
  13. locked and limited conversation to collaborators on Jan 22, 2024
  14. added
    verification-needed
    on Jan 23, 2024
  15. modified the milestones: Backlog, on Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-sticky-scrollfeature-requesthelp wantedinsiders-releasedverification-neededverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions