Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2,099
    • Issues 2,099
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #32779
Closed
Open
Issue created Dec 05, 2017 by FPC Admin account@fpc_adminOwner

TPanel has the wrong color when using clDefault.

Original Reporter info from Mantis: hrittich
  • Reporter name: Hannah Rittich

Description:

TPanels are often used to structure the GUI. Hence, it is usually assumed that the background color of the panel is the same as the background color of the form that owns the panel. However, when both, the panel and the form, are assigned the color clDefault, then the two colors are not the same.

In this case, the panel is assigned the color clBtnFace and the form is assigned clForm. When using a theme where these colors differ, many GUIs look odd.

Steps to reproduce:

Choose a theme with different colors for clBtnFace and clForm. For example use the GTK+ theme Numix. Create a Form that contains a Panel and set the background color for both components to clDefault.

Additional information:

I have included a patch that corrects this behavior.

Mantis conversion info:

  • Mantis ID: 32779
  • OS: Debian GNU/Linux
  • OS Build: 9
  • Build: SVN
  • Platform: GTK+
  • Fixed in version: 1.9 (SVN)
  • Fixed in revision: 56684 (#8a97fb67)
Assignee
Assign to
Time tracking